Re: [SOAP] SOAP/WSDL Authentication

From: Date: Mon, 26 Jun 2006 22:11:58 +0000
Subject: Re: [SOAP] SOAP/WSDL Authentication
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2336@lists.php.net to get a copy of this message
Vandegrift, Ken wrote:
$client = new SoapClient(http://path/to/file.wsdl <http://path/to/file.wsdl> , array("login" => "userid", "password" => "pwd"); This code looks a bit funky, try:
$client = new SoapClient("http://path/to/file.wsdl", array('login' => 'userid', 'password' => 'pwd')); login/password are perfectly correct options to the SoapClient. If you still get 401 responses you should check your login/password again. Regards, Knut Urdalen

« previous php.soap (#2336) next »