File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes JAX-RPC vs JAX-WS some differences Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "JAX-RPC vs JAX-WS some differences" Watch "JAX-RPC vs JAX-WS some differences" New topic

JAX-RPC vs JAX-WS some differences

Sim Kim
Ranch Hand

Joined: Aug 06, 2004
Posts: 268

While going through JAX-WS tutorials I noticed some differences between JAX-RPC and JAX-WS (WSDL-Java mapping).

1. In JAX-WS , if there is more then one parameter which is of OUT or IN/OUT type then the return type of method is void .

2. In JAX-WS the element of type "anyType" maps to Object , In JAX-RPC is mapped to SOAPElement.

I will update with more as and when I notice some more differences.
Peer Reynders

Joined: Aug 19, 2005
Posts: 2922
There are lots of other differences, for example in JAX-WS the handler chains changed. There were JAX-RPC handlers, now there are Protocol and Logical handlers. The change in name was justified ...

The beta objectives don't mention JAX-RPC at all - so why is this important? If your are worried about RMH you should always check the appropriate specifications first to see if the RMH material is still relevant.
[ November 18, 2008: Message edited by: Peer Reynders ]
Sim Kim
Ranch Hand

Joined: Aug 06, 2004
Posts: 268

Can you read Victor's review about the exam :

There was questions about migration from JAX-RPC to JAX-WS and differences between them, but this is not in the objectives!

I hope these things don't come but still who knows ?
Peer Reynders

Joined: Aug 19, 2005
Posts: 2922
I see. Just a general thought. The SCDJWS was always more about breadth rather than depth (compared to the other programming/API certifications) because there is so much to cover. I'm all for knowing the details because it makes it easier to understand how things fit together, however you can't trade depth for breadth in this preparation - lack of breadth is going to affect your results.

So given Victor's remark I would look for general things - like that you cannot reuse the handlers, which deployment files are different, that RPC/encoded isn't supported, etc. But that's just my opinion.

JAX-RPC versus JAX-WS, Part 1
JAX-RPC versus JAX-WS, Part 2
JAX-RPC versus JAX-WS, Part 3
JAX-RPC versus JAX-WS, Part 4
JAX-RPC versus JAX-WS, Part 5
[ November 19, 2008: Message edited by: Peer Reynders ]
Rahula Krishnan

Joined: Dec 08, 2011
Posts: 24
Please check the below link

It is sorta covered in the JavaRanch Style Guide.
subject: JAX-RPC vs JAX-WS some differences
Similar Threads
web services overview
JBoss WS client exception
JAX-RPC2.0 become JAX-WS
JAX-RPC client for JAX-WS service