You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sam Khan <sk...@SVTECHNOLOGY.com> on 2003/07/28 22:26:57 UTC
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
Re: Adding header info to WSDL
Posted by Anne Thomas Manes <an...@manes.net>.
Yes.
- define the <authentication> element in the <types> section.
- define an additional <part> in your input message and reference the
authentication element.
- add a <soap:header> element to the <input> element in the <binding> and
reference the header message part (see [1])
[1] http://www.w3.org/TR/wsdl#_soap:header
Anne
----- Original Message -----
From: "Sam Khan" <sk...@SVTECHNOLOGY.com>
To: <ax...@ws.apache.org>
Sent: Monday, July 28, 2003 4:26 PM
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
>
>
>