Has anybody used any tool to generate JAX-WS service (with annotations) from a WSDL? We are trying to use contract first method by handcoding WSDL. We are looking for some tool to generate JAX-WS service from the WSDL. Please let me know if somebody has done this already.
The wsimport tool helps you to, starting from a WSDL, generate artifacts that can be used both to develop a web service or a client.
Both client and service artifacts contains annotations (at least when I tried it last time).
Joined: Apr 08, 2005
I did try the wsimport that eclipse provides, but it only gave me classes without annotation. Can you please tell me which JAX-WS implementation are you using and are you using any specific IDE?
Joined: Oct 04, 2006
I used the wsimport in the JavaSE 6 distribution, as follows:
- The WSDL.
- The XML schema containing the types used in the WSDL.
- Where to save the generated files (in the current directory).
- Keep generated (source) code. Normally wsimport deletes the source.