axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Houlding" <>
Subject getting Axis to show header info in WSDL
Date Wed, 28 Jan 2004 21:28:51 GMT
Does anyone know how to add header info to the WSDL dynamically
generated from an Axis web service (by throwing the web service a ?wsdl


I have a .NET client that generates stubs from the WSDL and it
understands headers only if they are specified in the WSDL. I have
successfully added the required header information manually after
editing the WSDL from Axis ... and then successfully generated the .NET
stubs, but would like to avoid having to do this by having Axis include
it in the WSDL automatically / dynamically generated ... perhaps through
specification of header information in the deployment descriptor for the
web service or something like that?


Any help greatly appreciated!


The following details show the sections of the WSDL that were updated
manually with the required header information. I would like to have this
automatically added by Axis through deployment descriptor or other
support so I don't have to edit the WSDL.


The header type:


                    <complexType name="Session">


                                 <element name="ID" nillable="false"




The message:


       <wsdl:message name="sendMessageRequest">

             <wsdl:part name="in0" type="xsd:string"/>

             <wsdl:part name="secureSession" type="tns1:Session"/>



The request:


             <wsdl:operation name="sendMessage">

                    <wsdlsoap:operation soapAction=""/>

                    <wsdl:input name="sendMessageRequest">

message="impl:sendMessageRequest" part="secureSession"
namespace="" use="encoded"/>

namespace="" use="encoded"/>


                    <wsdl:output name="sendMessageResponse">

namespace="" use="encoded"/>




View raw message