Re: SOAP/WSDL Authentication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux