On Wed, Sep 9, 2009 at 10:27 PM, BENDALE, Yogiraj (Yogiraj) <
yogi...@alcatel-lucent.com> wrote:

>  Amila,
>
>
>
> The wsdl file I used are same only difference is we started using JDK1.6
> from JDK1.5 and now any client compiled from JDK1.5 does not work.
>
> It gives org.apache.axis2.databinding.ADBException
>

first check which version produces the wrong order.
Generated code should have the same order as the wsdl used in code gen.

then send us the wsdl file and jdk version with produces the wrong code.
Please try with the Axis2 1.5 as well.

thanks,
Amila.

>
>
> Thanks
>
> Yogiraj
>
>
>
>
>
> *From:* Amila Suriarachchi [mailto:amilasuriarach...@gmail.com]
> *Sent:* Wednesday, September 09, 2009 7:20 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: axis2 1.3 - jdk1.6 generates wrong argument sequence in
> soap message
>
>
>
> are the two wsdl files same?
>
> thanks
> Amila.
>
> On Wed, Sep 9, 2009 at 6:54 PM, BENDALE, Yogiraj (Yogiraj) <
> yogi...@alcatel-lucent.com> wrote:
>
>
>
> Hi,
>
>
>
> We are using axis2 1.3 with JDK1.5.
>
>
>
> Recently we upgraded to JDK1.6 and found that the client and server
> generated with JDK1.6 and axis2 1.3 works fine.
>
> But the client of axis2 1.3 JDK1.6 does not work axis2 1.3 –JDK1.5.
>
> Looking at the generated code it seems that WSDL2Java generated code with
> JDK1.6 changes the order of arguments sent on SOAP message.
>
>
>
> Is there any options or parameters need to be set.
>
>
>
> In both the generated file definition of in0 and in1 is same.
>
>
>
> SOAPResponseData localIn0;
>
> ArrayOfMapItem localIn1;
>
>
>
> JDK1.6:-
>
>
>
>
>
>               while (!reader.isStartElement() && !reader.isEndElement())
>
>                     reader.next();
>
>
>
>                 if (reader.isStartElement() &&
>
>                         new javax.xml.namespace.QName("", "in1").equals(
>
>                             reader.getName())) {
>
>
> object.setIn1(com.lucent.nos.wsam.gateways.soap.NOTIFY2.ArrayOfMapItem.Factory.parse(
>
>                             reader));
>
>
>
>                     reader.next();
>
>                 } // End of if for expected property start element
>
>
>
>                 else {
>
>                     // A start element we are not expecting indicates an
> invalid parameter was passed
>
>                     throw new org.apache.axis2.databinding.ADBException(
>
>                         "Unexpected subelement " + reader.getLocalName());
>
>                 }
>
>
>
>                 while (!reader.isStartElement() && !reader.isEndElement())
>
>                     reader.next();
>
>
>
>                 if (reader.isStartElement() &&
>
>                         new javax.xml.namespace.QName("", "in0").equals(
>
>                             reader.getName())) {
>
>
> object.setIn0(com.lucent.nos.wsam.gateways.soap.NOTIFY2.SOAPResponseData.Factory.parse(
>
>                             reader));
>
>
>
>                     reader.next();
>
>                 } // End of if for expected property start element
>
>
>
>
>
> JDK1.5
>
>
>
>                 while (!reader.isStartElement() && !reader.isEndElement())
>
>                     reader.next();
>
>
>
>                 if (reader.isStartElement() &&
>
>                         new javax.xml.namespace.QName("", "in0").equals(
>
>                             reader.getName())) {
>
>
> object.setIn0(com.lucent.nos.wsam.gateways.soap.NOTIFY2.SOAPResponseData.Factory.parse(
>
>                             reader));
>
>
>
>                     reader.next();
>
>                 } // End of if for expected property start element
>
>
>
>                 else {
>
>                     // A start element we are not expecting indicates an
> invalid parameter was passed
>
>                     throw new org.apache.axis2.databinding.ADBException(
>
>                         "Unexpected subelement " + reader.getLocalName());
>
>                 }
>
>
>
>                 while (!reader.isStartElement() && !reader.isEndElement())
>
>                     reader.next();
>
>
>
>                 if (reader.isStartElement() &&
>
>                         new javax.xml.namespace.QName("", "in1").equals(
>
>                             reader.getName())) {
>
>
> object.setIn1(com.lucent.nos.wsam.gateways.soap.NOTIFY2.ArrayOfMapItem.Factory.parse(
> reader));
>
>
>
>                     reader.next();
>
>
>
>
>
>
>
> Let me know if any more information required.
>
>
>
> Thanks
>
> Yogiraj
>
>
>
>
>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Reply via email to