If you're using the stock HTTP transport, this can be enforced using HTTP
headers and basic authentication.

Add a handler to your request flow which checks the username.  If null,
raise an AxisFault with the fault code set to "Server.Unauthenticated".
This will send a 401 response (authentication required) back to the client.
Once the client sends a request with basic authentication credentials, AXIS
will populate the username and password for you.


HTH,
Ian

Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure & Operations
[EMAIL PROTECTED]
(614) 213-6100




"Sam Khan" <[EMAIL PROTECTED]> on 07/28/2003 04:26:57 PM

Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:

Subject:  Adding header info to WSDL



Hi,

Is it possible to specify header parameters in a web service's WSDL ?
Specifically, I want
to ensure that  a client sends the following elements in a SOAP header:

<authentication>
     <username></username>
     <password></password>
</authentication>

Can this be enforced in the WSDL?

Many thanks
Sam










This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.

Reply via email to