Re: WSDL and Authentication

From: Date: Tue, 20 Jun 2006 15:16:35 +0000
Subject: Re: WSDL and Authentication
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2325@lists.php.net to get a copy of this message
On Tue, 20 Jun 2006 08:06:57 -0700, Vandegrift, Ken wrote: > I keep getting the HTTP/1.1 401 Unauthorized... > > Any help would be greatly appreciated. > You are properly facing this bug also: http://bugs.php.net/bug.php?id=27777 AFAIK the problem is coursed by the SOAP client not using the credentials when fetching the WSDL in which case the username and password but be provided as part of the url to the WSDL. $client = new SoapClient(http://userid:pwd@tld/path/to/file.wsdl <http://path/to/file.wsdl> , array("login" => "userid", "password" => "pwd"); -- Hilsen/Regards Michael Rasmussen http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917

« previous php.soap (#2325) next »