Title: Message
Using the Connector Property means that you rely on the HTTP basic authentication mechanism, meaning that you will not be the one validating the user and password but your HTTP Server/Servlet container will do it for you. According to which HTTP Server/Servlet container you are using, they can provide hooks for custom authentication so you can do the validation yourself, but it is completely independent from the Web Service.
 
If you want to validate the user and password by yourself, within the Web Service context, then you should probably try to use SOAP headers. But good luck to do that with the MS Soap client (you need to define a specific COM object in order to handle SOAP headers).
 
Thomas

-----Original Message-----
From: Xander van der Merwe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:34 AM
To: [EMAIL PROTECTED]
Subject: Authentication with MS Soap client

Can anyone please tell me how to use authentication (and authorization) on a per webservice and method basis on an Axis web server when the client uses the MS Soap Client low level API.
 
I've tried to set the following in the MS Soap client:
 
Connector.Property("AuthUser") = "username"
Connector.Property("AuthPassword") = "password"
 
But I cannot figure out how to get or use this information on the server side. I would prefer to write my own code inside the web service to validate the username and password.
 
ps. As a side issue, I assume we must use the MS Soap low level API with Axis in order to set the SoapAction..?
 
Thanks in advance
Xander

 

Reply via email to