For Programmers: Free Programming Magazines  


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 wend 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com