Skip to Content
author's profile photo Former Member
Former Member

SAAJ vs JAX-RPC

Hi Team,

Whats the differences implementing web service clients using SAAJ and JAX-RPC ?

Do we have any performance related differences between these two ?

If I am not worng, SAAJ dynamic way of calling web services which means that it will create SOAP message on fly for every request.

So SAAJ may take more time comapred to implementing the clients using JAX-RPC.

Please correct me if my assumption is wrong.

Thanks,Anil

Edited by: Anilkumar Vippagunta on Jan 29, 2008 1:50 AM

Edited by: Anilkumar Vippagunta on Jan 29, 2008 1:50 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 05:28 AM
    • Former Member Former Member

      Hi Anil,

      SAAJ is SOAP w/ attachment API for Java

      JAX-RPC is Java for XML Remote Procedural Call.

      SAAJ is manually creating( by coding) SOAP messages and sending to other applications

      JAX-RPC is only to concentrate on your java code. It hides all the complexity of creating XML and SOAP messages and how to send it on network.

      Prior to JAX-RPC JAXM 1.0 was there which contains both SAAJ and JAXM. JAXM .

      After evolution of JAX-RPC , JAM1.0 was splitted into two, SAAJ and JAXM.

      Now both JAX-RPC and JAXM interbnally uses SAAJ for developing and deploying XML messages/Interfaces.

      JAXM is used maily for EbXML and JAX-RPC is mainly used for providing and consuming Web Services.

      JAX-RPC contains several protocols which are used for Web Services apart from building SOAP meaasges which SAAJ takes care of.

      Now new evolution of JAX-WS has come which is better and efficient than JAX-RPC

      Hope this helps.

      Regards,

      Piyush

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 12:34 AM

    Yes your assumptions are incorrect...

    JAAS has noting to do with WebServices...

    It is Authentication and Authorization..(Login and Accessiablity)

    The comparrsion could be between JAX-RPC and JAX-WS.

    and In general, JAX-WS performance is better than that of JAX-RPC at larger payloads.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 01:18 AM

    SAAJ provide interfaces for creating and sending SOAP messages.

    Both JAX-RPC and JAX-WS make use of SAAJ.

    I would not compare the performance between the custom code using SAAJ API and JAX-RPC....

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.