How can I construct a SOAP header using the "TransportWithMessageCredential" mode in PHP using the SoapClient. I'm using the SoapClient as this seems to be the best solution. The following is from the given documentation:
The Webservice uses the security mode "TransportWithMessageCredential“. For secure transmission an SSL certificate is being used. Furthermore, for the security of the message exchange, a combination of username and password is required. The username and password are transmitted in the SOAP-Header.
Example:
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasisopen.
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 wssecurityutility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-37">
<wsse:Username>MyUsername</wsse:Username>
<wsse:Password Type="http://docs.oasisopen.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">MyPassword!</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasisopen.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">vAvnhyzl+yP8Yb8ZVdKnMw==</wsse:Nonce>
<wsu:Created>2014-03-17T13:08:02.795Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
Where "MyUserName" and "MyPassword!" ofc. is interchanged with the actual login information.
wsdl's are available for every functionality offered.