[Version 5.0.2 and later]Passing SOAP messages with attachments through the Web services gateway

The Web services gateway supports Web services that pass attachments in a MIME message.

Why and when to perform this task

This support is included in the SOAP over HTTP channel.

Attachments are carried through the various gateway components and passed to the target service. The content MIME type of each attachment is preserved.

When the target service is deployed to a Java API for XML-based Remote Procedure Call (JAX-RPC) compliant server, you can access the attachments on the target service using the javax.activation.DataHandler handler.

The WSDL representing a SOAP messages with attachments service must define the attachment parts in the binding section. The mime:multipartRelated, mime:part and mime:content tags are used to describe the attachment.

For more information, see the following topics:

The following scenarios are not supported:

The MIME headers from the incoming message are not preserved for referenced attachments. The outgoing message contains new MIME headers for Content-Type, Content-Id and Content-Transfer-Encoding that are created by WSIF.


Related concepts
SOAP messages with attachments - a definition
Related tasks
Enabling Web services through the Web services gateway



Searchable topic ID:   twsg_attach
Last updated: Jun 21, 2007 9:56:50 PM CDT    WebSphere Application Server for z/OS, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/twsg_attach.html

Library | Support | Terms of Use | Feedback