Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 name="SResp"></wsdl:message>

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

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

When I was using java 1.5,the order of message in SOAP envelope was

After migrating to java 1.6 the order of message in SOAP envelope has changed to

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 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)
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic