如何在soap客户端编写soap标头

时间:2015-03-24 09:06:03

标签: java soap soap-client

我使用Axis2来创建存根。

  <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
     <wsse:UsernameToken wsu:Id="UsernameToken-4" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsse:Username>Uname</wsse:Username>
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">pwd</wsse:Password>
     </wsse:UsernameToken>
  </wsse:Security>

任何人都可以给我上面标题的java soap客户端代码

1 个答案:

答案 0 :(得分:0)

Google中的第一个链接(在axis2示例中添加soap标头)

Working with Custom SOAP Headers