Generating Stubs from WSDL Using Axis2
This was a fun one. I was attempting to generate the web service stubs from a wsdl file using axis2's WSDL2JAVA.sh file. You would think that you could just plug in your own parameters into the example LINUX command in the
Apache AXIS2 Hello World Tutorial.
That command looks like: sh WSDL2Java.sh -uri http://localhost:8080/axis2/services/SimpleService?wsdl -o /path/to/my/client/code/
When you do this you get the error: Unrecognized option: -uri
Well if you look at what the WSDL2Java.sh actual does, it just calls the Axis2.sh delivered in the bin directory of the Axis2 implementation.
I bypassed the first shell script and ran the follow command: sh /axis2.sh org.apache.axis2.wsdl.WSDL2Java -uri mywsdl.wsdl -o /mydirectory and it generates the file!
To conclude I didn't do this with usual main artillery: a Mac Book Pro with Mac OS X 10.5 Leopard but rather with a um PowerBook G4 with Mac OS X 10.4 Baby Unicorn. This may have had something to with the blow up but go ahead and try er yourself and let me know.
Labels: Technology
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home