Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-WS is backward compatible with JAX-RS?

 
Himai Minh
Ranch Hand
Posts: 1296
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EPractice Lab, a question "A developer is migrating all of the company's JAX-RPC services into JAX-WS."
Which are true?
A. JAX-WS is essentially JAX-RPC 2.0 and is backward compatible with JAX-RPC services.
B. Deployment descriptors from JAX-RPC can be used under JAX-WS.
C. Deployment descriptors are no longer required.
D. jaxax.xml.ws.Service is a server-side API
E. javax.xml.ws.Service is a client API.
F. sun-jaxws.xml is the standard Java EE deployement decriptor.

I believe the answer should be A, C and E.
But the given answer is C and E.
The explanation from EPractice Lab , "JAX-RPC 2.0 was renamed JAX-WS 2.0..."
By reading this statement, it is very obviously JAX-WS is essentially JAX-RPC 2.0.
Also I believe the RPC/literal mode of JAX-WS is for backward compatibility of JAX-RPC 1.0
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There never was a JAX-RPC 2, so what it might have been compatible to is a moot question. There is no compatibility between JAX-RPC and JAX-WS.
 
Himai Minh
Ranch Hand
Posts: 1296
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
So, in JAX-WS, the RPC/literal binding mode is not related to any JAX-RPC. I thought RPC/literal is for backward compatibility to JAX-RPC.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not what I meant. WS are meant to be interoperable, so a JAX-RPC client should be able to access a JAX-WS server and vice versa.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic