Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes SAAJ vs JAX-RPC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SAAJ vs JAX-RPC" Watch "SAAJ vs JAX-RPC" New topic
Author

SAAJ vs JAX-RPC

Douglas Kent
Ranch Hand

Joined: Oct 06, 2000
Posts: 171
I need to write a Web Service as quickly as possible. Just getting into the various Sun XML API's. I take it there is no way to write a Web Service (server) using SAAJ? Would you write the server using JAX-RPC, and, if so, would this permit SAAJ clients to connect?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
SAAJ is a low-level API for constructing SOAP messages. JAX-RPC is a high-level API, which hides the actual SOAP stuff. Based on this, I'd say you'll be better off using JAX-RPC when you need to build something quickly.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Agree with Lasse. But if you are specifically need SAAJ and not SOAP-RPC I recommend the Sun toolkit, not axis, though I am still quite confused about all that different flavours of webservices.
We are using the sun webservices dev Toolkit1.2 for SAAJ. Don't know how is support in axis for SAAJ. I've told my colleagues that axis does not support newest version of SAAJ, but I am not sure, if this was the truth, because it was 50% guessing based on incomplete information and 50% politics to acelerate decission-making process.
With sun toolkit its easy too build an SAAJ-server component. There are specific Servlets for that called SAAJServlet. You have to extend those. There are sample apps in the sun Toolkit.
regards Axel
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
SAAJ is actually a part of JAX-RPC, and so any server (such as Axis) that supports JAX-RPC must implicitly support SAAJ. However, I'm with Lasse and Axel -- why do that?
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
wood burning stoves
 
subject: SAAJ vs JAX-RPC
 
Similar Threads
a jax-rpc as a client of an axis2 + rampart
Role of SOAP and WSDL in Web-Services
use JAX-RPC or SAAJ service?
Web service to pass a jar
Web Services to transmit files