Calling a wsdl in php over https using Zend Soap Client
- by Sam Segers
When I'm trying to connect to a webservice I always get the next fault
SoapFault exception: [s:Sender] An error occurred when verifying security for the message
I have to use a security header like:
<o:Security env:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp env:mustUnderstand="1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2010-06-10T08:22:59Z</wsu:Created>
<wsu:Expires>2010-06-12T10:22:59Z</wsu:Expires>
</wsu:Timestamp>
<o:UsernameToken>
<o:Username>myUsername</o:Username>
<o:Password>myPassword</o:Password>
</o:UsernameToken>
</o:Security>
My username and password are correct, I have allready tried to change the expiration date later but that doesn't solve it.
What else could be the reason for this fault?