I've been trying to find a way to specified explicit headers in a WSDD. I want these headers to appear in the WSDL document axis generates for my web service.
Is there any way to do this? Can someone point me to an example?
I haven't found a Java2WSDL option for this, so what I do is manually add the <wsdlsoap:header> element to the <binding>:
<wsdl:binding ...> <wsdl:input name="processPoRequest"> <wsdlsoap:header message="impl:processPoRequest" part="callbackEndpoint" use="literal"/> <wsdlsoap:body parts="purchaseOrder" use="literal"/> </wsdl:input>
Then I generate new service files with WSDL2Java --server-side and use the generated JavaBean classes for parameters and return values. The generated classes retrieve data from the header elements as needed. Clients still generate stubs with WSDL2Java, and the header values are treated as ordinary parameters.
If you find a Java2WSDL option for this, please post it.
Regards, Mike
Thank you very much, Chris
--
Mike Woinoski Pine Needle Consulting mailto:[EMAIL PROTECTED]