Home > Archive > PHP Pear > March 2006 > Re: [PEAR] PEAR::SOAP authentication
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] PEAR::SOAP authentication
|
|
| Justin Patrin 2006-03-21, 10:01 pm |
| 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 w end 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
| |
| T.Lensselink 2006-03-30, 6:59 pm |
| Justin Patrin wrote:
> On 3/21/06, T.Lensselink <admin@ensifex.nl> wrote:
>
>
> 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
>
>
Sorry for the late reply :)
Thnx Justin... adding the user and pass option to the config array
worked fine :)
Thijs
|
|
|
|
|