I am wondering how to implement soap header authentication in a soap web service server using NuSoap library.
I have seen lots of examples about NuSoap Client but want to implement this in a server.
Thank you, mk
I am wondering how to implement soap header authentication in a soap web service server using NuSoap library.
I have seen lots of examples about NuSoap Client but want to implement this in a server.
Thank you, mk
The soapserver object holds the soap header as an associative array under the 'requestHeader' property, so if you can figure out a way to get an instance of the server from your function, you will be able to get the soapHeader.
There is obviously better coding practices for doing this, but you got the idea. Also whatchout for the requestHeaders property, as it holds the HTTP headers NOT the SOAP Header, remember: requestHeader WITHOUT the trailing 's' is your guy.
Hope it helps