Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Web Service Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

17.2 The SOAP with Attachments Specification

The specification Soap Messages With Attachments defines a multipart message format called a SOAP message package. A SOAP message package is constructed according to the following rules:

The specification also recommends that the root part contain a Content-ID header, and that the multipart/related media header contain a matching start parameter. This permits more robust error detection.

Figure 10: SOAP Message with Attachments

The code below shows a SOAP 1.1 message package that contains a SOAP message in the root part that references an attached base64-encoded GIF image:

In this example, the element in the SOAP message

references the attached image with the corresponding Content-ID header.

The sections that follow describe how to send and receive SOAP messages with MIME attachments over HTTP using HydraExpress. These sections assume you are familiar with the basic steps for using HydraExpress to generate code and develop Web services.



Previous fileTop of DocumentContentsIndex pageNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.