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 Looking for a simple JAX-WS top down tutorial Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Looking for a simple JAX-WS top down tutorial " Watch "Looking for a simple JAX-WS top down tutorial " New topic
Author

Looking for a simple JAX-WS top down tutorial

Max Tomlinson
Ranch Hand

Joined: Jul 17, 2001
Posts: 365
Hi

Does anyone know of a simple JAX-WS top-down tutorial that starts with simple wsdl and creates the WS from there?

A simple string echo message or similar service would eb ideal.

thanks

Max
Amit ChaudhariC
Ranch Hand

Joined: Aug 06, 2009
Posts: 33
http://wso2.org/library/1986.
Hope this helps.
Max Tomlinson
Ranch Hand

Joined: Jul 17, 2001
Posts: 365
thanks, Amit.

This is helpful but I was really looking for a jax-ws sample. (Jboss native).
Does anyone know of one?

Max
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Oh my. Very hard to find a top-down tutorial! Please see if this helps.
Max Tomlinson
Ranch Hand

Joined: Jul 17, 2001
Posts: 365
Hi Srini-
Thanks for posting.
Max
Kevin Hermann
Greenhorn

Joined: Aug 12, 2010
Posts: 7
Unlike many Java technologies I have been unable to find even simple, complete, and well written Java Web Services tutorials/books. When people want to practice the concept of producing and consuming web services I always refer people to the MyEclipse tutorials. MyEclipse is a really great IDE that 80% of Fortune 100 companies use. Here is a good tutorial that works with MyEclipse where you produce and consume your own web service. You can also use this tutorial to generate web service clients based on a WSDL (top-down approach):

http://www.myeclipseide.com/index.php?module=htmlpages&func=display&pid=7 (Find the web services section and find JAX-WS examples).

http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/ (good tutorial on producing and consuming web services).

By the way MyEclipse is not free but you can download a 30 day trial version and practice the producing and consuming of web services. You have an interest in a top-down approach so visit xmethods.com, select the full list, then search for Temperature Conversions web service and use the URL to that WSDL to generate a web service client. You will be able to invoke a web service operation by passing a single parameter if I remember correctly. xmethods.com is a web service repository and there are other web service WSDLs that are available that you can play around with and generate web service clients to inovke these service operations.

Happy web service exploration!


SCJP 6, SCWCD 5
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Kevin, I weren't able to find a single JAX-WS top down (WSDL-first) tutorial that creates a web service, and not a web service client, in any of the links you provided.
Can you help me out and supply a direct link to such a tutorial?
Thanks!


My free books and tutorials: http://www.slideshare.net/krizsan
Kevin Hermann
Greenhorn

Joined: Aug 12, 2010
Posts: 7
Hi Ivan,

Try this tutorial to give you an idea of how to expose a Java class as a web service:

http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/

What is great in this tutorial is that you'll also have a chance to invoke the web service you created earlier in this tutorial. If all goes well while you go through this tutorial, then you can follow these steps, beginning with Step 7 (Web Service Client Generation) to work with an existing WSDL + deployed web service from xmethods.com. Step 7 shows you the details you need to produce a web service client based on a complete WSDL file. As Step 7 will show you is that once MyEclipse generates the web service client, you will still have to write code to call the web service.

Let me know how it goes and then I'll share some more details with you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Looking for a simple JAX-WS top down tutorial