NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
setCredentials problem... any help!!!

Joined: 23 Mar 2007
Posts: 1
Reply with quote
Hi everyone:

I have been using nusoap for a while but this is the first time i have this problem.

I'm trying to connect to a Webservice with these parameters:

$client = new soapclient("http://user:pass@localhost/webservices/MyWS.php?wsdl", true);

or these:

$client = new soapclient("http://localhost/webservices/MyWS.php?wsdl", true);
$client->setCredentials("user", "pass", "basic");

When i try to run the page it send an error that says: "HTTP Error: HTTP authentication failed"

I been searching for a solution and i found that Windows has 'blocked' the FEATURE_HTTP_USERNAME_PASSWORD_DISABLE or something like that for security reasons. I changed the registry and nothing works, but that's not the point (change the registry of Windows) or the problem. To test the Web service i use a program called 'StrikeIron Web Service Analyzer' and everything works fine, i try to see the WSDL with Firefox and everything is OK except for IE6, so the problems are not .htaccess and .htpasswd files or the server, the problem is nusoap (and maybe Windows) but i don't know why...

Is there a reason that nusoap doesn´t work well when i use 'user:pass@host' access? Any suggestions? Thank's for any help.

I'm using:

NuSOAP 1.94
PHP 5.0
Apache Server 2.0
Windows XP Professional
View user's profileFind all posts by private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
probably your wsdl URL (http://localhost/webservices/MyWS.php?wsdl) is protected too. In this case, soapclient fails before you set the credentials.
as a possible workaround, you may download wsdl and create soapclient instance with that WSDL file, not URL or put WSDL into another URL not covered by authentication.

The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
setCredentials problem... any help!!!
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

 Reply to topic