Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer web services - Bus enabled web services > Enable web services through the service integration bus > Pass SOAP messages with attachments through the service integration bus


SOAP Messages with Attachments: WSDL examples

Use this task to see an example and explanation of a WSDL file with an attachment.


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///publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=/  "/>
<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 service integration technologies silently ignore this mapping and treat the attachment as a Data Handler.

You do not have to mention unreferenced attachments in the WSDL bindings.
SOAP with attachments: A definition


Related


Map of SDO data graphs for web services messages

+

Search Tips   |   Advanced Search