I am trying to implement web service in a web application. the web service requires credentials to be sent in the header. Also in the header tag, there is a namespace. I used a class inherited from AddressHeader to add the credentials but now I need to add a namespace to that header.
Here is the result XML:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<wes:auth xmlns:wes="http://asdf.org">
<u>tester</u>
<p>tester</p>
</wes>
</soap:Header>
<soapenv:Body>
<get:GetCustomer xmlns:get="http://werty.org">
...
</get:GetCustomer>
</soapenv:Body>
</soapenv:Envelope>