You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »


MTOM/XOP Messages

 You can elect the binary content to include—as well as validate, send, and receive—optimized messages.

MTOM optimized messages can be sent using the SOAP Client or Message Responder in Form Input view. 

The XOP optimization is performed by replacing the xsd:base64Binary element contents with a reference that looks similar to the following:

< xop:Include href="cid:1.urn:uuid:[email protected]" xmlns:xop="http://www.w3.org/2004/08/xop/include" />

The same href cid value is used in a --MIME_boundary section, which would include the corresponding non-encoded content.

To enable the sending of optimized messages, complete the following:

  1. Enable either MTOM always or MTOM optional.
    • MTOM always: This tool will always send the request in a XOP Package (that is, with MIME boundaries), even when there is not optimized content in the request (that is, even when xsd:base64Binary XML types are not present in the message).
    • MTOM optional: This tool will send the request in a XOP Package (that is, with MIME boundaries) only when there is optimized content in the request. In the absence of optimized content, it will send a normal request.

  2.  The Form Input view is a schema-aware view. In this view, the xsd:base64Binary schema datatype will be recognized so that you can reference the content that you want to optimize. When you click on a base64Binary type, the following options are available:

    • Reference to file: This is the recommended option. This option allows you to select a file to send as optimized content. This way, the file contents are not stored in the suite.

    • Persist As Relative Path: It is always recommended that the path to the file be kept as a relative path to the suite to allow for easier sharing and collaboration with the rest of the organization.
    • Import from file: This option (not recommended) allows you to read the contents in from the file. This option is not recommended for big files because the contents of the file will be loaded into memory.
    • Additionally, the file to be sent can be driven by data sources by choosing Parameterized from the menu and selecting a File Data Source


  • No labels