Page 1 of 1

SOAP problems, authentication

Posted: Tue Aug 05, 2008 3:09 pm
by aukedirk
Hi everyone,

at the moment i am writing a SOAP-service in PHP5 with the usage of WSDL. I am an experienced programmer but have not
often used PHP for webservices.

First of all what is working::
I am able to do remote-procedure calls on my SoapServer's class object..

$server->setClass("CLASS");

The trouble i am having concerns the HEADER part.
I would like to send authentication inside the header. I have read that the PHP SoapServer
first processes the header. In which i would like it to call myClass function, Authenticate.
I've seen that the nodes are actually send to the server, but php ignore's this. I am at a total loss
as what it might be. Any help would be very appriciated.

If someone could spot an error in my WSDL.
WSDL location http://pietersma.hopto.org/SOAP/wsdl/punchit_auth.wsdl

<SOAP-ENV:...
<SOAP-ENV:Header>
<ns1:Authentication>
<Username>Auke</Username>
</ns1:Authentication>
</SOAP-ENV:Header>
...

I've tried with one argument and multiple but no result.
I've also heard there are 3 different SOAP implementations for php... how can i check this and does it
make a difference?

CLASS {
..
.
public function Authentication($usr){
...
}

Kind regards.. a lost Guy :D
ciao Auke The Netherlands