Re: [SOAP] Apache Basic Authentication PEAR::SOAP Client
| From: | (Anthony) | Date: | Mon, 19 May 2003 15:50:14 +0000 |
| Subject: | Re: [SOAP] Apache Basic Authentication PEAR::SOAP Client | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-608@lists.php.net to get a copy of this message | ||
> I had to make the SOAP client pass a unique 'key' in the header of all SOAP
> requests sent to our SOAP server. This was achieved by doing:
What format should this userToken be in?
How about..
array('username'=>'myuser','password'=>'mypassword')
> $ourHeader = new SOAP_Header('TokenHeader', 'Struct',
> array('InnerToken' =>
> $this->userToken), false);
> $ourHeader->attributes['xmlns'] =
> "http://www.adomain.co.uk/services"; //
> get from $this->fqn() ??
> $this->addHeader($ourHeader);
Does this mean that I have to write code to handle the TokenHeader I
recieve within the Server? I was hopeing to get Apache to do it for me!
> It's a bit hacky having the xmlns hardcoded like this though, I thought it
> might have been possible to get it from the 'fqn' attribute. I've not had
> time to look into this more. IT works for now.
Please excuse my lack of understanding but I don't know what a 'fqn'
attribute is! (Fully Qualified Name?? ..what if you ns is not your FQDN?).
Anyway is there a way to specify that this header information is required
from within the WSDL?
Thanks in advance.
Anthony.