[Version 5.0.2 and later]Writing the WSDL extensions for SOAP messages with attachments

Example

The following example WSDL illustrates a simple operation that has one attachment called attch:

<binding name="MyBinding" type="tns:abc" >
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  <operation name="MyOperation">
    <soap:operation soapAction=""/>
    <input>
      <mime:multipartRelated>
        <mime:part>
          <soap:body parts="part1 part2 ..." use="encoded" namespace="http://mynamespace"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
        </mime:part>
        <mime:part>
          <mime:content part="attch" type="text/html"/>
        </mime:part>
      </mime:multipartRelated>
    </input>
  </operation>
</binding>

In this type of WSDL extension:

In your WSDL you might have defined a schema for the attachment (for instance as a binary[]). The gateway silently ignores this mapping and treats the attachment as a Data Handler.

You do not need to mention unreferenced attachments in the WSDL bindings.


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



Searchable topic ID:   twsg_attach_wsdl
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_wsdl.html

Library | Support | Terms of Use | Feedback