File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Total newby question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Total newby question" Watch "Total newby question" New topic
Author

Total newby question

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
To create a service interface stud to exposed the service methods for the client to use,

I need the WSDL.xml file and run the wsimpor tool against it, this will create the stub jar with the interfaces that the client can use to talk to the srveice methods.

Cheers for any help
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Yes, wsimport is the tool to use if you want to generate server or client artifacts from a WSDL document.
If you develop a web service this way, then it is called WSDL-first approach.
You can also write a Java class annotated with JAX-WS or JAX-RS (the latter for RESTful web services) annotations. This is called code-first approach.
For a tutorial on developing JAX-WS web service using the code-first approach, see http://netbeans.org/kb/docs/websvc/jax-ws.html
Best wishes!
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
Thanks Ivan, that is what I was looking for.

Cheers Tony
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Total newby question
 
Similar Threads
why we cant't use constructor for initializing servlet
How to use the web service client classes generated with Eclipse for consuming an axis 1.4 service ?
Creating a new webservice from existing ones????
Writing webservices clients from wsdl files
Call Webservice methods from the URL addresss