Axis doesn't currently generate Java objects or handlers from header definitions.
You need to write a handler routine, and configure it in your handler chain.


Anne

At 02:49 PM 10/3/2003 -0700, you wrote:
Hi Anne,

Many thanks for your reply. I hope you dont mind my writing to you directly - if so, please ignore this email.

I have a question regarding your response. Having, as per your instructions, created a header in the WSDL, do you know if running WSDL2JAVA should create a corresponding java object? I ask because running wsdl2Java does not produce a header object - how then can I set the value of the header in my web service client.

Best regards,
Sam Khan

-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 2:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Adding header info to WSDL


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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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 > > >




Reply via email to