Authentication in SOAP/PHP

I built a web service in php, everything is fine. Now I have got to think about authentication: the application that is calling my web service have got to send me a login/password in some way... what can I do? I don't want to simply send and read a post parameter but to use soap header. Can you help?

Thank you so much for reading.

P.S: I am using nuSoap.


Who is Participating?
Marcus BointonConnect With a Mentor Commented:
NoSOAP doesn't support HTTP authentication, which is what you'd normally use, but I've heard that you can make it work by specifying the id/pass in the URL. PHP5's SOAP extension does it.
ezraelAuthor Commented:
ok, but specifiying it in the url means that I have got to use get method and this is not really useful ;-)
what about php5's soap extension? how to use it?
Marcus BointonCommented:
You may be able to use the same URL in a POST request. PHP5's SOAP docs are here:
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.