我正在尝试使用 Oracle SOA 套件从第三方网站进行查询。SOAP 消息应该有一个标题:
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-1">
<wsse:Username>USERNAME_HERE</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD_HERE</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">q3rLryh0dfQ1BucKrtpagw==</wsse:Nonce>
<wsu:Created>2012-11-26T20:38:56.682Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
但是,在 JDeveloper 中没有明确的方法来执行此操作。如何在 JDeveloper 和 SOA Suite 中配置我的 WS 策略和属性以生成带有上述标头的 SOAP 消息?