Re: PEAR::SOAP authentication

From: Date: Thu, 30 Mar 2006 19:27:15 +0000
Subject: Re: PEAR::SOAP authentication
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23483@lists.php.net to get a copy of this message
Justin Patrin wrote: > 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 > > Sorry for the late reply :) Thnx Justin... adding the user and pass option to the config array worked fine :) Thijs

« previous php.pear.general (#23483) next »