axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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.


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

"Sam Khan" <> on 07/28/2003 04:26:57 PM

Please respond to

To:   <>

Subject:  Adding header info to WSDL


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:


Can this be enforced in the WSDL?

Many thanks

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.

View raw message