Problem with WSSE (WebServiceExtensions)

Hi,
i am trying to use WSSE from PHP and have found some examples. Problem is that the server give me the error that the "Secutiry header are not present in the incoming message".

As i can see in the attached complete request the security header really are present.

What am i missing here?

- Svein
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://mynsurl/">
  <SOAP-ENV:Header>
    <ns1:Security>
      <ns1:UsernameToken>
         <ns1:Username>myUserName</ns1:Username>
         <ns1:Password>myPassword</ns1:Password>
      </ns1:UsernameToken>
    </ns1:Security>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:HelloWorld/>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Open in new window

LVL 5
svelarsenAsked:
Who is Participating?
 
svelarsenConnect With a Mentor Author Commented:
I found the solution.
Was just a typo error in the namespace uri.

Thanks anyway.
0
 
DarkFishCommented:
Can you provide more information, such as operating system, PHP version, example source code etc. It's a bit difficult to help you with this issue as we do not have enough information to make an informed recommendation. :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.