File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Contract First Service - WSDL to JAX-WS service

 
Vijay Sing
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic