SAAJ

SAAJ stands for SOAP with Attachments API for Java - contains APIs for creating and populating SOAP messages, which may or may not contain attachments.

SAAJ

     

SAAJ stands for SOAP with Attachments API for Java - contains APIs for creating and populating SOAP messages, which may or may not contain attachments. It also contains APIs for sending point-to-point, non-provider-based, request and response SOAP messages.

SOAP message is made of SOAP Envelope with zero or more attachments. The SOAP Envelope is then made of SOAP Header and SOAP Body. SOAP attachment allows the SOAP message to contain not only the XML data but also non-XML data such as JPG file. Each attachment is defined by a MIME type and can assume any content represented as a byte stream. SOAP's attachment feature is vary useful when a client wants to transmit binary data, such as an image or audio data, to a Web service.

SAAJ provides a convenient library to construct and read SOAP messages, and also lets you send and receive SOAP messages across the network. SAAJ defines the namespace javax.xml.soap.

The process involves five steps:

  1. Creating a SOAP connection
  2. Creating a SOAP message
  3. Populating the message
  4. Sending the message
  5. Retrieving the reply

Advertisements

Ads

 

We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.

Share on Google+Share on Google+

SAAJ

Posted on: November 17, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: SAAJ  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads