NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
htaccess authentication


Joined: 13 Aug 2008
Posts: 3
Reply with quote
hello @all,

i like to protect my webservice with htaccess.
i dropped a htaccess-file in the direcotry where the service ist placed.
Code:

AuthType Basic
AuthName "my service"
AuthUserFile /path/webservice/user/.htpasswd
require valid-user


now i try to connect the service
Code:

$soap = new soapclient('http://test:test@www.myservice.de/webservice/wsserver.php?wsdl', true);
$login = $soap->setCredentials("test","test","basic");

the htaccess login form always pops up i try to call the webservice.
any ideas why this login-form pops up ??

bye jogi
View user's profileFind all posts by jogisargeSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Quote:
htaccess login form always pops up

I'm not sure who is asking for the password.
With SOAP, you have just TWO servers.
Closer one runs your SOAP client code and remote one runs SERVER code.
With this paradigm, UI is not involved at all.
If you run your SOAP client code using browser, you have to check if the script is accessible without password.
What you're protecting with password is remote server. Not? If you're protecting server running SOAP client, you have to have the password popup in your browser.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
htaccess authentication
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