aspose file tools*
The moose likes Web Services and the fly likes Contract First Service - WSDL to JAX-WS service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Contract First Service - WSDL to JAX-WS service" Watch "Contract First Service - WSDL to JAX-WS service" New topic
Author

Contract First Service - WSDL to JAX-WS service

Vijay Sing
Greenhorn

Joined: Apr 08, 2005
Posts: 7
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.

Thanks
V
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hello!
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).
Best wishes!
Vijay Sing
Greenhorn

Joined: Apr 08, 2005
Posts: 7
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?

Vijay
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I used the wsimport in the JavaSE 6 distribution, as follows:

Parameters:
- 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.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Contract First Service - WSDL to JAX-WS service