Skip to content

Instantly share code, notes, and snippets.

@gknapp
Created July 26, 2012 15:08
Show Gist options
  • Save gknapp/3182612 to your computer and use it in GitHub Desktop.
Save gknapp/3182612 to your computer and use it in GitHub Desktop.
PHP SoapClient request
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xxx" xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns3="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
<SOAP-ENV:Header>
<ns2:Security SOAP-ENV:mustUnderstand="1">
<ns2:UsernameToken>
<ns2:Username>username</ns2:Username>
<ns3:Password>password</ns3:Password>
</ns2:UsernameToken>
</ns2:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:request/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Security Data : UsernameToken authentication failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment