• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 generating diff. java files in Jdk 1.5 and Jdk 1.6  RSS feed

 
Amit Sana
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a wsdl file in which the input message has two parts

<wsdl:message name="SReq">
<wsdl:part name="in0" type="typens:SOAPResp"></wsdl:part>
<wsdl:part name="in1" type="typens:ArrayOfMap"></wsdl:part>
</wsdl:message>

<wsdl:message name="SResp"></wsdl:message>

<wsdl:message name="ExternalFault">
<wsdl:part name="fault" element="typens:ApplFault"></wsdl:part>
</wsdl:message>

<wsdl:portType name="Snote">
<wsdlperation name="Snote">
<wsdl:input message="typens:SReq" name="SReq"></wsdl:input>
<wsdlutput message="typens:SResp" name="SResp"></wsdlutput>
<wsdl:fault name="SFault" message="typens:ExternalFault"></wsdl:fault>
</wsdlperation>
</wsdl:portType>

When I was using java 1.5,the order of message in SOAP envelope was
<in0>
<in1>

After migrating to java 1.6 the order of message in SOAP envelope has changed to
<in1>
<in0>

when i try invoking the client in java1.6 and the service in java1.5 or the vice versa the server throws the exception org.apache.axis2.databinding.ADBException "Unexpected subelement "

While invoking the service in same java version is done successfully


This is because of the object "Snote" which is sent over the wire serialises and parses in reverse order for 1.6 as in case of 1.5.

The Snote.java file (generated java file) is different in case of java 1.5 and java 1.6

java 1.5 -- serializes in0 then in1
java 1.6 -- serializes in1 then in0

Please help i m unable to send request from a client to a web service (when both client and web service use different java version)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!