Calling a wsdl in php over https using Zend Soap Client

Posted by Sam Segers on Stack Overflow See other posts from Stack Overflow or by Sam Segers
Published on 2010-06-11T09:35:59Z Indexed on 2010/06/11 9:43 UTC
Read the original article Hit count: 402

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about php

Related posts about soap