Jump to content

PHP SOAP Authentication


aukedirk

Recommended Posts

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.

 

Here is the WSDL location

 

http://pietersma.hopto.org/SOAP/wsdl/punchit_auth.wsdl

 

And this is how the header part is recieved by the server.

 

<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? I have not installed or included any SOAP libs so i am assuming it is the native one that

i am using.(Correct me if i'm wrong)

 

CLASS {

..

.

public function Authentication($usr){

...

}

 

 

Any tips or hints would be appriciated!

 

Kind regards.. a lost Guy :D

ciao Auke The Netherlands

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.