Two Laptop Bag*
The moose likes Web Services and the fly likes Why JAX-WS over JAX-RPC + JAXB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Why JAX-WS over JAX-RPC + JAXB" Watch "Why JAX-WS over JAX-RPC + JAXB" New topic
Author

Why JAX-WS over JAX-RPC + JAXB

Sim Kim
Ranch Hand

Joined: Aug 06, 2004
Posts: 268
Hi All,

I am working on a project where I need to upgrade from JAX-RPC to JAX-WS. My project is using JAXB + JAX-RPC for data binding. So I have marshaller and unmarshaller written for parsing data.

JAX-WS has delegated Java/XML binding to JAXB but still while using JAX-WS too I would need to write marshaller and unmarshaller.

So what advantage I would be getting writing WebServices in JAX-WS with respect to JAXB ?

Also any other advantages I get using JAX-WS over JAX-RPC which will make me think of upgrading my existing web services to JAX-WS .
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
Why do you need to upgrade if you aren't even sure what advantages -if any- that will bring?


Ping & DNS - updated with new look and Ping home screen widget
Sim Kim
Ranch Hand

Joined: Aug 06, 2004
Posts: 268
Thats what I am asking Ulf ?
Leave aside upgradation , what if I need to make some new Web services , why should I use JAX-WS over JAX-RPC with respect to JAXB ? I need to present some good points to management/client for this .
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1164
Sim,

> I need to present some good points to management/client for this.

The 'What is different?' section in Web services hints and tips: JAX-RPC versus JAX-WS presents some points in a very concise way.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why JAX-WS over JAX-RPC + JAXB
 
Similar Threads
Two Question [JAXB and JAX-WS]
Creating Object from XML file
Mark Hansen - JWS, JEE 6
Can't generate java classes from WSDL file
JBoss WS client exception