Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Authentication in SOAP/PHP

Posted on 2005-04-11
3
Medium Priority
?
852 Views
Last Modified: 2010-07-27
Hi!
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.

ezrael

0
Comment
Question by:ezrael
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
Marcus Bointon earned 200 total points
ID: 13753840
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.
0
 

Author Comment

by:ezrael
ID: 13754245
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?
0
 
LVL 25

Expert Comment

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

http://www.php.net/manual/en/ref.soap.php
http://www.zend.com/php5/articles/php5-SOAP.php
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
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.
Suggested Courses
Course of the Month20 days, 17 hours left to enroll

810 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