Authentication in SOAP/PHP

Posted on 2005-04-11
Last Modified: 2010-07-27
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.


Question by:ezrael
    LVL 25

    Accepted Solution

    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.

    Author Comment

    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?
    LVL 25

    Expert Comment

    You may be able to use the same URL in a POST request. PHP5's SOAP docs are here:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Title # Comments Views Activity
    PHP foreach DB query 4 21
    Total days in a month 12 27
    how can I referesh my page? 4 16
    phpMyAdmin simple sql statement 3 16
    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    The viewer will learn how to count occurrences of each item in an array.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now