Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Help Java S SAAJ

Related Tutorials


 
 

Share on Google+Share on Google+

SAAJ

Advertisement
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
Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 17, 2009

Related Tutorials

Discuss: SAAJ  

Post your Comment


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