could you please attached a sample WSDL which reproduce this error. Regards, Shameera.
On Fri, Mar 29, 2013 at 6:44 PM, Jack Sprat <rexclaim...@yahoo.com> wrote: > Yes, I used ADB binding (-d adb) and got the exact same error that was > thrown using XMLBeans binding. > > > The WSDL appears to be valid. I tested with the Woden parser and also > with XMLSpy. The wsdl2java command throws an error with ADB or XMLBeans > binding. > > How can I get past this problem? > > > Thanks, > J > > ________________________________ > From: Shameera Rathnayaka <shameerai...@gmail.com> > To: java-user@axis.apache.org; Jack Sprat <rexclaim...@yahoo.com> > Cc: "axis-u...@ws.apache.org" <axis-u...@ws.apache.org> > Sent: Thursday, March 28, 2013 11:44 PM > Subject: Re: [Axis2] wsdl2java with WSDL 2.0 > > > Hi Jack, > > > > On Thu, Mar 28, 2013 at 9:15 PM, Jack Sprat <rexclaim...@yahoo.com> wrote: > > Same exact error using ADB binding. > > > >Please advise how to get past this problem. I am really stuck! > > > > > If you need to generated ADB binding, then use -d adb instead -d xmlbeans > , BTW ADB is default binding, if you didn't specifically mentioned the -d > option then binding would be ADB, You can find more about this from > here[1][2] > > Cheers, > Shameera. > > [1]http://axis.apache.org/axis2/java/core/tools/CodegenToolReference.html > [2]http://axis.apache.org/axis2/java/core/tools/ > > > Thanks, > >J > > > > > > > > > >----- Original Message ----- > >From: Sagara Gunathunga <sagara.gunathu...@gmail.com> > >To: "axis-u...@ws.apache.org" <axis-u...@ws.apache.org> > >Cc: > >Sent: Tuesday, March 26, 2013 1:32 AM > >Subject: Re: [Axis2] wsdl2java with WSDL 2.0 > > > >On Tue, Mar 26, 2013 at 2:18 AM, Jack Sprat <rexclaim...@yahoo.com> > wrote: > >> Does the wsdl2java command work with a version 2.0 WSDL? I have > created a version 2.0 WSDL and validated it with Woden (included with Axis2 > 1.6.1). The WSDL also passed validation using Altova XML Spy. However, an > error is thrown when I try to create the code stubs using wsdl2java. Below > is the command: > >> > >> call %AXIS2_HOME%/bin/WSDL2Java -uri > C:\Data\MyWebService\docs\myServiceV2.0.wsdl -p > com.mycompany.ws.myservice.producer.gensrc -d xmlbeans -s -ss -sd -ssi -wv > 2.0 -o C:\Data\build\myservice > > > >I'm not quite sure it is well supported for xmlbeans try to use > >default ADB it should work. > > > >Thanks ! > >> > >> Thanks, > >> J > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org > >> For additional commands, e-mail: java-dev-h...@axis.apache.org > >> > > > > > > > >-- > >Sagara Gunathunga > > > >Blog - http://ssagara.blogspot.com > >Web - http://people.apache.org/~sagara/ > >LinkedIn - http://www.linkedin.com/in/ssagara > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > >For additional commands, e-mail: java-user-h...@axis.apache.org > > > > > > > -- > > Best Regards,Shameera Rathnayaka. > > Blog : http://shameerarathnayaka.blogspot.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > -- Best Regards, Shameera Rathnayaka. Blog : http://shameerarathnayaka.blogspot.com/