Basic authentication

For basic authentication, the user name and password can be defined either as Web Services Security (WS-Security) in the SOAP header or as Properties in the SOAP body.

The user name and password that are defined in WS-Security take precedence.

The password can be defined as a <Password> tag or a <PW> tag. The <Password> tag takes precedence.

WS-Security example

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
   <SOAP-ENV:Header>
      <XA:BeginSession xmlns:XA="urn:schemas-microsoft-com:xml-analysis" mustUnderstand="1"/>
      <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">
         <wsse:UsernameToken>
            <wsse:Username>admin</wsse:Username>
            <wsse:Password>p@assword</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
    ...
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Properties example

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
   <SOAP-ENV:Header>
      <XA:BeginSession xmlns:XA="urn:schemas-microsoft-com:xml-analysis" mustUnderstand="1"/>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
   ...
      <Properties>
         <PropertyList>
            ...
            <UserName>admin</UserName>
            <Password>p@assword</Password>
            ...
         </PropertyList>
      </Properties>
   ...
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>