Re: [Axis2] wsdl2java with WSDL 2.0

Jack Sprat <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
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 <[email protected]>
To: [email protected]; Jack Sprat <[email protected]> 
Cc: "[email protected]" <[email protected]> 
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 <[email protected]> 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 <[email protected]>
>To: "[email protected]" <[email protected]>
>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 <[email protected]> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
>
>--
>Sagara Gunathunga
>
>Blog      - http://ssagara.blogspot.com
>Web      - http://people.apache.org/~sagara/
>LinkedIn - http://www.linkedin.com/in/ssagara
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>


-- 

Best Regards,Shameera Rathnayaka.

Blog : http://shameerarathnayaka.blogspot.com/ 
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.