This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Web Services and the fly likes JAX-RPC or JAX-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-RPC or JAX-WS" Watch "JAX-RPC or JAX-WS" New topic


ahmet oguz

Joined: Mar 08, 2006
Posts: 18

I want to learn how to write Web Service an with this point I want to ask what is the difference between JAX-RPC and JAX-WS. Which one is right for me to start Web Services?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13025
Here is Sun's page on the relationship between JAX-RPC and JAX-WS.

And here is another.

In this latest upheaval of Sun's approach to web services, everything has been unified (we hope) under JAX-WS. I have no idea as to how many developers are making the jump.

ahmet oguz

Joined: Mar 08, 2006
Posts: 18

I want to ask another question, I install the netbeans 5.5 ide and with this ide, it is very easy to build an web service. But I am doing nothing. Everything is made by ide. and I don't like this. I want to learn what are happens, how to create, which classes I need?. so where I can learn everything about web service? Do you give a link, or book, or tutorial or etc,

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959

coincidentally, we were just discussing how to use JAX-WS on Tomcat in this thread. You don't need any tools or J2EE server, besides the JAx-WS reference implementation, Tomcat and Ant.

Start with one of the RI samples (e.g., the one called "fromjava"), figure out how to run the apt tool that generates server-side classes, deploy the service, learn about the "@WebService" annotation and the related ones (@WebMethod, @WebParam, @Webresult, @HandlerChain) that define a WS.

This article might be of interest.
sushil bhogale

Joined: Mar 13, 2007
Posts: 8
Initial version to use Java Web Service is JAX-RPC 1.0. But during next version 2.0, the folks realized that the industry was not merely doing RPC Web services, but they were also doing message-oriented Web services. So "RPC" was removed from the name and replaced with "WS" (which stands for Web Services, of course). Thus the successor to JAX-RPC 1.1 is JAX-WS 2.0 - the Java API for XML-based Web services.

In order to understand and learn web services -
1. Download TomCat 5.0 [as 6.0 has version mis-match issue with Axis 1.4]
2. AXIS 1.4 [ java2wsdl command - to create WSDL file]
3. Learn WSDL format - basically the different tags
Consider Paul's rocket mass heater.
subject: JAX-RPC or JAX-WS
jQuery in Action, 3rd edition