+

Search Tips   |   Advanced Search


Use WSIF to invoke Web services >

 

Example: Writing the WSDL extensions for SOAP attachments

 

These example code fragments show you how to write 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 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:




 

Related Reference


Example: Using WSIF to pass SOAP attachments
SOAP messages with attachments - Working with types and type mappings
Passing SOAP messages with attachments using WSIF

 

Reference topic