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 donald yang <do...@googlemail.com> on 2007/02/21 16:41:09 UTC
AXIS2 generates invalid fault element for SOAP1.1 binding in WSDL
Hi,
WSDL generator of AXIS2 has a bug. When I retrieve the WSDL for Version web
service using the following method:
http://localhost:8080/axis2/services/Version?wsdl
the generated WSDL is invalid if a operation has fault message. The SOAP 12
binding element is correct, just SOAP1.1 binding element[1] is invalid. It
should be [2].
best regards
donald
[1] original SOAP1.1 binding element
<wsdl:binding name="VersionSOAP11Binding" type="axis2:VersionPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
−
<wsdl:operation name="getVersion">
<soap:operation soapAction="urn:getVersion" style="document"/>
−
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
−
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
−
*<wsdl:fault name="getVersionFault">
<soap:body use="literal"/>
*</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
[2] correct one
<wsdl:fault name="getVersionFault">
<soap12:*fault *use="literal" *name="getVersionFault"/*>
</wsdl:fault>
*-* <http://brad:8080/axis2/services/Version?wsdl#>