We are using Axis1.1 for web service in JBoss. Since our application is both client and server, we get the wsdl file from another C application and generate both client and server side stubs.
Now we are trying to replace Axis1.1 with JBoss web service 1.0.3. I could not find a way to let JBOSS wstool do the same thing as Axis wsdl compiling tool does.
Does anyone know whether JBoss wstool can generate both client and server stubs through one wsdl file? If it does, where can I find more document on how to achieve this?
Thanks for any help
Take a look at our user guide and our samples. With Java EE web services you dont generate a stub, instead you generate an interface and a mapping file. Our guide and samples talk about how you use them.
Jason, thank you very much for the reply. Sorry for the inaccurate question.
I actually meant whether I can generate both client and server side deployment artifacts through one wsdl file for RPC endpoint including webservices.xml. I have successfully generated the mapping file and the interface. I will also need the webservices.xml to deploy the RPC endpoint implementation, right?
Do I have to generate the interface through wsdl file first, then generate the webservices.xml through the generated interfaces? Is there one step I can generate both client and sever artifacts through the wsdl file?
Thanks a lot.
You can use the artifacts for both. The problem is that when going from wsdl to java you still have to hand write the webservices.xml file.
The 1.0.4 release will add support for generating it.
Hi Jason, jjchen,
I am trying to do something similar, i.e. going from wsdl --> java for deployment. I would really appreciate if one of you can answer the following for me:
(1) If I have a wsdl file hand-crafted, can I use wstool to generate java server and client stubs, binding classes, and jaxrpc-mapping file from the wsdl file
I am not able to find a way to use wstool utility when I have a pre-written wsdl file.
(2) If not then I how do I approach WSDL-first development on JBoss.
thanks in advance