I am trying to generate java Client code to access a web service from a WSDL using axis 1.4. Documentation that comes with the WSDL expects me to generate packets with SOAP headers that look something like this.

Is this a well-known security scheme that Axis can be easily configured to generate or must it be coded by hand?

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";
 xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
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">
<soap:Header>
      <wsa:Action></wsa:Action>
<wsa:MessageID>urn:uuid:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</wsa:MessageID>
      <wsa:ReplyTo>
             <wsa:Address>
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
             </wsa:Address>
      </wsa:ReplyTo>
      <wsa:To>https://{url:443}</wsa:To>
      <wsse:Security soap:mustUnderstand="1">
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis- 200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-xxxxxxx-xxxx-xxxx-
              xxxx-xxxxxxxxxxxx">
                    <wsse:Username>[username]</wsse:Username>
                    <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-
                      token-profile-1.0#PasswordText">
                           [password]
                    </wsse:Password>
             </wsse:UsernameToken>
      </wsse:Security>
  </soap:Header>
   <soap:Body>
... </soap:Body>
</soap:Envelope>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to