Forum Discussion

ushaplaxo's avatar
ushaplaxo
Contributor
13 years ago

No security header in message

Hi,

I am trying to execute a soap request. I created a new project, added a wsdl file. Filled in the required information. When I run it, I get the following error:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>No Security header in message but required by policy.</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

How do I resolve this error?

This might be the security header it is looking for:

<ns3:Security>
<ns3:UsernameToken>
<ns3:Username>USER</ns3:Username>
<ns3:Password>PSWD</ns3:Password>
</ns3:UsernameToken>
</ns3:Security>