aspose file tools*
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-RPC or JAX-WS" Watch "JAX-RPC or JAX-WS" New topic
Author

JAX-RPC or JAX-WS

ahmet oguz
Greenhorn

Joined: Mar 08, 2006
Posts: 18
Hi,

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?

Thanks,
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
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.

Bill
ahmet oguz
Greenhorn

Joined: Mar 08, 2006
Posts: 18
Hi,

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,

Thanks,
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
Ilter,

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.


Ping & DNS - my free Android networking tools app
sushil bhogale
Greenhorn

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JAX-RPC or JAX-WS