Sorry for all the newbie questions :(
Environment:
JDK 1.4.2
Orion Server 2.0.7
Axis2 1.0
Windows XP
Eclipse 3.1
Generating java code from hand coded WSDL file.
The issue is that soap headers disappears from bindings in the file
extracted using ?wsdl from the axis2.war.
Is this correct behaviour?
If so how do the client know that it should send the header?
If not, what do I do to get the headers back?
Many thanks.
The original WSDL file looks like this:
<binding name="createLeasingApplicationSoapHttp"
type="tns:createLeasingApplication">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="createLeasingApplication">
<soap:operation style="document"
soapAction="urn:leasingApplication.web.antares.com/createLeasingApplication"/>
<input>
<soap:body use="literal"/>
<soap:header message="tns:LeasingLogin" part="login"
use="literal"/>
</input>
<output>
<soap:body use="literal" />
</output>
<fault name="leasingFault">
<soap:fault name="leasingFault" use="literal"/>
</fault>
</operation>
</binding>
The file generated in the resources folder looks like this (still has
the headers):
<wsdl:binding type="tns:createLeasingApplicationPortType"
name="createLeasingApplicationSOAP11Binding">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="createLeasingApplication">
<soap:operation style="document"
soapAction="urn:leasingApplication.web.antares.com/createLeasingApplication"/>
<wsdl:input>
<soap:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
<soap:header use="literal" part="login"
message="tns:LeasingLogin"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:output>
<wsdl:fault name="LeasingFault">
<soap:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding type="tns:createLeasingApplicationPortType"
name="createLeasingApplicationSOAP12Binding">
<soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="createLeasingApplication">
<soap12:operation style="document"
soapAction="urn:leasingApplication.web.antares.com/createLeasingApplication"/>
<wsdl:input>
<soap12:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
<soap12:header use="literal" part="login"
message="tns:LeasingLogin"/>
</wsdl:input>
<wsdl:output>
<soap12:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:output>
<wsdl:fault name="LeasingFault">
<soap12:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
The file retireved using ?wsdl looks like this:
<wsdl:binding type="tns:createLeasingApplicationPortType"
name="createLeasingApplicationSOAP11Binding">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="createLeasingApplication">
<soap:operation style="document"
soapAction="urn:leasingApplication.web.antares.com/createLeasingApplication"/>
<wsdl:input>
<soap:body namespace="urn:leasingApplication.web.antares.com
use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:output>
<wsdl:fault name="LeasingFault">
<soap:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding type="tns:createLeasingApplicationPortType"
name="createLeasingApplicationSOAP12Binding">
<soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="createLeasingApplication">
<soap12:operation style="document"
soapAction="urn:leasingApplication.web.antares.com/createLeasingApplication"/>
<wsdl:input>
<soap12:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:output>
<wsdl:fault name="LeasingFault">
<soap12:body namespace="urn:leasingApplication.web.antares.com"
use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding type="tns:createLeasingApplicationPortType"
name="createLeasingApplicationHttpBinding">
<http:binding verb="POST"/>
<wsdl:operation name="createLeasingApplication">
<http:operation location="createLeasingApplication"/>
<wsdl:input>
<mime:content type="text/xml"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
Håkon
--
Antares Gruppen AS
Dir.phone: +47 - 23 29 05 75
Mobile: +47 - 911 79 505
http://www.antares.no
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]