axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ian_d_stew...@bankone.com
Subject Re: Adding header info to WSDL
Date Mon, 28 Jul 2003 20:52:59 GMT


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
ian_d_stewart@bankone.com
(614) 213-6100




"Sam Khan" <skhan@SVTECHNOLOGY.com> on 07/28/2003 04:26:57 PM

Please respond to axis-user@ws.apache.org

To:   <axis-user@ws.apache.org>
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.


Mime
View raw message