Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAAJ vs JAX-RPC

 
Douglas Kent
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic