You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2016/12/19 15:40:58 UTC

[jira] [Resolved] (AXIS2-5821) client code generated by wsdl is out of order

     [ https://issues.apache.org/jira/browse/AXIS2-5821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIS2-5821.
------------------------------------
    Resolution: Invalid

The service uses SOAP encoding, which isn't supported by Axis2.

> client code generated by wsdl is out of order
> ---------------------------------------------
>
>                 Key: AXIS2-5821
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5821
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.6.2, 1.7.4
>         Environment: windows7, jdk 1.8
>            Reporter: leichen
>            Priority: Blocker
>
> Run wsdl2java with WMLS.wsdl to generate the client adb code.
> Message "Store.WMLS_GetFromStoreResponse"  will parse the element "Result" with an exception.
> The origon wsdl is ordered by ("Result", "XMLout", "SuppMsgOut").
> The code generate is  order by ("XMLout", "SuppMsgOut", "Result").
> WMLS.wsdl
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="WMLS" targetNamespace="http://www.witsml.org/wsdl/120" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlns="http://www.witsml.org/wsdl/120" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
> <documentation>WITSML Version 1.2.0 STORE interface WSDL file
> </documentation>
>   <message name="Store.WMLS_GetVersionResponse">
>     <part name="Result" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_GetBaseMsgResponse">
>     <part name="Result" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_GetBaseMsg">
>     <part name="ReturnValueIn" type="xsd:short">
>     </part>
>   </message>
>   <message name="Store.WMLS_DeleteFromStore">
>     <part name="WMLtypeIn" type="xsd:string">
>     </part>
>     <part name="QueryIn" type="xsd:string">
>     </part>
>     <part name="OptionsIn" type="xsd:string">
>     </part>
>     <part name="CapabilitiesIn" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_GetVersion">
>   </message>
>   <message name="Store.WMLS_AddToStore">
>     <part name="WMLtypeIn" type="xsd:string">
>     </part>
>     <part name="XMLin" type="xsd:string">
>     </part>
>     <part name="OptionsIn" type="xsd:string">
>     </part>
>     <part name="CapabilitiesIn" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_UpdateInStore">
>     <part name="WMLtypeIn" type="xsd:string">
>     </part>
>     <part name="XMLin" type="xsd:string">
>     </part>
>     <part name="OptionsIn" type="xsd:string">
>     </part>
>     <part name="CapabilitiesIn" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_GetFromStore">
>     <part name="WMLtypeIn" type="xsd:string">
>     </part>
>     <part name="QueryIn" type="xsd:string">
>     </part>
>     <part name="OptionsIn" type="xsd:string">
>     </part>
>     <part name="CapabilitiesIn" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_UpdateInStoreResponse">
>     <part name="Result" type="xsd:short">
>     </part>
>     <part name="SuppMsgOut" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_GetCap">
>     <part name="OptionsIn" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_GetFromStoreResponse">
>     <part name="Result" type="xsd:short">
>     </part>
>     <part name="XMLout" type="xsd:string">
>     </part>
>     <part name="SuppMsgOut" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_GetCapResponse">
>     <part name="Result" type="xsd:short">
>     </part>
>     <part name="CapabilitiesOut" type="xsd:string">
>     </part>
>     <part name="SuppMsgOut" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_AddToStoreResponse">
>     <part name="Result" type="xsd:short">
>     </part>
>     <part name="SuppMsgOut" type="xsd:string">
>     </part>
>   </message>
>   <message name="Store.WMLS_DeleteFromStoreResponse">
>     <part name="Result" type="xsd:short">
>     </part>
>     <part name="SuppMsgOut" type="xsd:string">
>     </part>
>   </message>
>   <portType name="StoreSoapPort">
>     <operation name="WMLS_AddToStore" parameterOrder="WMLtypeIn XMLin OptionsIn CapabilitiesIn SuppMsgOut">
>       <input message="wsdlns:Store.WMLS_AddToStore">
>     </input>
>       <output message="wsdlns:Store.WMLS_AddToStoreResponse">
>     </output>
>     </operation>
>     <operation name="WMLS_DeleteFromStore" parameterOrder="WMLtypeIn QueryIn OptionsIn CapabilitiesIn SuppMsgOut">
>       <input message="wsdlns:Store.WMLS_DeleteFromStore">
>     </input>
>       <output message="wsdlns:Store.WMLS_DeleteFromStoreResponse">
>     </output>
>     </operation>
>     <operation name="WMLS_GetBaseMsg" parameterOrder="ReturnValueIn">
>       <input message="wsdlns:Store.WMLS_GetBaseMsg">
>     </input>
>       <output message="wsdlns:Store.WMLS_GetBaseMsgResponse">
>     </output>
>     </operation>
>     <operation name="WMLS_GetCap" parameterOrder="OptionsIn CapabilitiesOut SuppMsgOut">
>       <input message="wsdlns:Store.WMLS_GetCap">
>     </input>
>       <output message="wsdlns:Store.WMLS_GetCapResponse">
>     </output>
>     </operation>
>     <operation name="WMLS_GetFromStore" parameterOrder="WMLtypeIn QueryIn OptionsIn CapabilitiesIn XMLout SuppMsgOut">
>       <input message="wsdlns:Store.WMLS_GetFromStore">
>     </input>
>       <output message="wsdlns:Store.WMLS_GetFromStoreResponse">
>     </output>
>     </operation>
>     <operation name="WMLS_GetVersion">
>       <input message="wsdlns:Store.WMLS_GetVersion">
>     </input>
>       <output message="wsdlns:Store.WMLS_GetVersionResponse">
>     </output>
>     </operation>
>     <operation name="WMLS_UpdateInStore" parameterOrder="WMLtypeIn XMLin OptionsIn CapabilitiesIn SuppMsgOut">
>       <input message="wsdlns:Store.WMLS_UpdateInStore">
>     </input>
>       <output message="wsdlns:Store.WMLS_UpdateInStoreResponse">
>     </output>
>     </operation>
>   </portType>
>   <binding name="StoreSoapBinding" type="wsdlns:StoreSoapPort">
>     <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
>     <operation name="WMLS_AddToStore">
>       <soap:operation soapAction="http://www.witsml.org/action/120/Store.WMLS_AddToStore"/>
>       <input>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </input>
>       <output>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </output>
>     </operation>
>     <operation name="WMLS_DeleteFromStore">
>       <soap:operation soapAction="http://www.witsml.org/action/120/Store.WMLS_DeleteFromStore"/>
>       <input>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </input>
>       <output>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </output>
>     </operation>
>     <operation name="WMLS_GetBaseMsg">
>       <soap:operation soapAction="http://www.witsml.org/action/120/Store.WMLS_GetBaseMsg"/>
>       <input>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </input>
>       <output>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </output>
>     </operation>
>     <operation name="WMLS_GetCap">
>       <soap:operation soapAction="http://www.witsml.org/action/120/Store.WMLS_GetCap"/>
>       <input>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </input>
>       <output>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </output>
>     </operation>
>     <operation name="WMLS_GetFromStore">
>       <soap:operation soapAction="http://www.witsml.org/action/120/Store.WMLS_GetFromStore"/>
>       <input>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </input>
>       <output>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </output>
>     </operation>
>     <operation name="WMLS_GetVersion">
>       <soap:operation soapAction="http://www.witsml.org/action/120/Store.WMLS_GetVersion"/>
>       <input>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </input>
>       <output>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </output>
>     </operation>
>     <operation name="WMLS_UpdateInStore">
>       <soap:operation soapAction="http://www.witsml.org/action/120/Store.WMLS_UpdateInStore"/>
>       <input>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </input>
>       <output>
>         <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.witsml.org/message/120"/>
>       </output>
>     </operation>
>   </binding>
>   <service name="WMLS">
>     <port name="StoreSoapPort" binding="wsdlns:StoreSoapBinding">
>       <soap:address location="http://yourorg.com/yourwebservice"/>
>     </port>
>   </service>
> </definitions>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org