Re: PEAR::SOAP authentication
| From: | Justin Patrin | Date: | Tue, 21 Mar 2006 16:27:39 +0000 |
| Subject: | Re: PEAR::SOAP authentication | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23370@lists.php.net to get a copy of this message | ||
On 3/21/06, T.Lensselink <admin@ensifex.nl> wrote:
> I'm working on a small webservice. When started this project i used the
> NuSOAP library. And it does the job perfectly. But last weekend i was
> playing around with the PEAR::SOAP package. This seems to be a lot more
> stable. And for sure a llot faster.
>
> Only in NuSOAP i could do the following to get to a secured page.
>
> $client->setCredentials(USERNAME, PASSWORD, AUTHTYPE);
>
> Now i wanna do the same in PEAR::SOAP but can't figure out a way to do it..
> Main is i just want Basic HTTP authentication. Maybe somebody knows?
>
>
Just put the credentials in your URL. It looks like the HTTP transport
has a setCredentials method and it uses it internally if you put it in
the URL.
This *may* not work, however. If it doesn't, try adding 'user' and
'pass' options.
--
Justin Patrin