I'm having a conversation with myself! In the spirit of sharing info:
>Is there any way I can get it to document required SOAP headers in
>the generated WSDL? I'm talking about <soap:header> tags

After I filed this as a feature enhancement Tom J. was kind enough to
close it out because Axis already does let you add headers to the
WSDL. Here's the pointer to instructions on how to do this in Axis:

http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/WSDLJavaHeaderWSDL

 <operation name="addMovie"
           returnType="xsd:string"
           xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <parameter name="title" type="xsd:string" inHeader="true"/>
   <parameter name="pricePerDay" type="xsd:double" outHeader="true"/>
 </operation>

I'm not sure this meets my needs; doing this in Axis implies that the
Java function has the header fields as parameters. (Ie: it basically
shifts the parameter from the SOAP body to the SOAP header). In my
case I'm decorating all of my service calls with the same SOAP headers
and I'd rather pull the header data out myself in an Axis Handler. But
it's still pretty useful.

Original bug I filed:
  http://issues.apache.org/jira/browse/AXIS-1303

Reply via email to