You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Johan Andersson <jo...@home.se> on 2006/04/07 14:54:39 UTC

[Axis2 0.95] Soap headers is removed from WSDL

Hello, 

After updating to 0.95 Axis is now stripping away the soap:header declarations from my WSDL when the service is deployed.

It also modifies the binding information...

If I deploy a service with the following binding declared in the WSDL:

<wsdl:binding name="MySoapBinding" type="tns:MyBindingType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="Display">
      <soap:operation soapAction="Display" />
      <wsdl:input>
        <soap:body use="literal" parts="Display" />
        <soap:header use="literal" part="MyHeader" message="tns:MyHeader001" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" parts="DisplayResponse" />
      </wsdl:output>
    </wsdl:operation>
</wsdl:binding>

Axis decides it should look like this on the server (?WSDL):

<wsdl:binding name="MySoapBinding" type="tns:MyBindingType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> 
    <wsdl:operation name="Display">
      <soap:operation soapAction="Display" style="document" /> 
      <wsdl:input>
        <soap:body use="literal" namespace="http://org.apache.axis2/" /> 
      </wsdl:input>
      <wsdl:output>
         <soap:body use="literal" namespace="http://org.apache.axis2/" /> 
      </wsdl:output>
    </wsdl:operation>
</wsdl:binding>

Where did my header go?
What is this "namespace" attribute doing in there?

Validating (for WS-I SSBP compliance) the modified WSDL also give me warnings.
The original WSDL for my service gave me no warnings when validating.

Why is Axis modifying my WSDL at all?
Is there any way to prevent this or should I implement my own ?WSDL ?

The headers worked fine in 0.94.


Best regards,
Johan