I'm not 100% sure on this because I've only used ADB with the default soap version, but I think that wsdl2java will only generate one *stub.java file in this situation. Then if you want to explicitly use soap version 1.1 or 1.2 you can specify properties in your stub. This article shows how to specify 1.2 or 1.1, I've never tried this but it would be easy to test.
http://www.keith-chapman.org/2009/02/axis2-how-to-set-soap-version-on-cl ient.html Chris -----Original Message----- From: java-user-return-83384-meeusen.christopher=mayo....@axis.apache.org [mailto:[email protected]. org] On Behalf Of Nydriotis Apostolos Sent: Monday, August 23, 2010 8:47 AM To: [email protected] Subject: Re: [Axis2] wsdl2java won't generate stubs for all the bindings No, it doesn't give any error messages. The xNASDAQLastSale wsdl has 4 bindings: ("XigniteNASDAQLastSaleSoap", "XigniteNASDAQLastSaleSoap12", "XigniteNASDAQLastSaleHttpGet" and "XigniteNASDAQLastSaleHttpPost"). When I tried the command you gave I got the stub for just the first binding. Shouldn't I get 4 stubs, one for each binding? Did you got all 4 stubs? On 8/23/10 4:19 PM, Meeusen, Christopher W. wrote: > Does it give an error message? I was able to use this command and > generate stubs fine. > > wsdl2java -uri http://www.xignite.com/xNASDAQLastSale.asmx?WSDL -p > test.xmethods -d adb > > Chris > > -----Original Message----- > From: > java-user-return-83378-meeusen.christopher=mayo....@axis.apache.org > [mailto:[email protected]. > org] On Behalf Of Nydriotis Apostolos > Sent: Sunday, August 22, 2010 12:16 PM > To: [email protected] > Subject: Re: [Axis2] wsdl2java won't generate stubs for all the > bindings > > > The exact command I use is: > > ./wsdl2java.sh -o<folderName> -uri<wsdlURI> -d adb > > > On 08/22/2010 08:05 PM, Greg Akins wrote: >> What options are you passing to wsdl2java? >> >> On Sun, Aug 22, 2010 at 9:56 AM, Nydriotis Apostolos >> <[email protected]> wrote: >>> Hello, >>> >>> I'm using wsdl2java tool that comes with Axis2 1.5.1 to generate the >>> stubs that I need for creating a webService client given its WSDL >>> file. (I use the adb databinding) >>> >>> When I try to generate stub classes for a paypal web service (its >>> wsdl file is here: https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl >>> ) axis won't generate stubs for both the bindings included to the >>> wsdl but just for the second one (PayPalAPIAASoapBinding). >>> >>> I've noticed the same behavior when trying on XigniteNASDAQLastSale >>> webservice found on www.xmethods.net (wsdl file here: >>> http://www.xignite.com/xNASDAQLastSale.asmx?WSDL ) >>> >>> What should I do to get the stubs for all the bindings in the WSDL? >>> >>> Thanks >>> Apostolos >>> >>> >>> P.S.: I tried to send tis message again 2-3 days ago but I think >>> something went wrong. I hope this doesn't arrive twice to you >>> >>> >>> -------------------------------------------------------------------- >>> - To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
