File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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


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

Joined: Jan 23, 2002
Posts: 11962
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
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
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 Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: SAAJ vs JAX-RPC
It's not a secret anymore!