Validate MTOM Message Assertion
The Validate MTOM Message assertion is used to validate MTOM-optimized messages. MTOM-optimized messages are based on the Message Transmission Optimization Mechanism (MTOM) specification.
Validate MTOM Messageassertion is used to validate MTOM-optimized messages. MTOM-optimized messages are based on the Message Transmission Optimization Mechanism (MTOM) specification.
To learn about selecting the target message for this assertion, see Selecting a Target Message.
MIME Multipart Messages
A SOAP service normally does not permit MIME multipart messages unless it is explicitly specified in the service's WSDL document or the policy contains an that processes MIME multipart. Adding a Validate MTOM Message assertion that targets a request message in a policy will mean that the service(s) for that policy will permit MIME multipart messages.
Using the Assertion
- Do one of the following:
- To add the assertion to the Policy Development window, see Adding an Assertion.
- To change the configuration of an existing assertion, proceed to step 2 below.
- Right-click<target>:Validate MTOM MessageMTOM Validate Propertiesor double-click the assertion in the policy window. The assertion properties are displayed.
- Configure the properties as follows:SettingDescriptionRequire encodedSelect this check box to require that the source message be MTOM-encoded, otherwise the assertion will fail.Clear this check box to not fail the assertion if the source message is not MTOM-encoded.Validation RulesThe Validation Rules table is used to control which element's content will be validated. For eachXPath, you can specify a maximumItem Countand maximumItem Size.
- To add a validation rule, click [Add].
- To modify a validation rule on the list, select it and then click [Edit].
- To remove a validation rule from the list, select it and then click [Remove].
- When adding or modifying a validation rule, the MTOM Validate Properties - Rule dialog appears.Complete the fields as follows:
- XPath:Click [Edit] to select the XPath containing the elements to validate. For more information, see Selecting an XPath.
- Item Count:Enter the maximum number of items permitted at the XPath. A count of '0' (zero) means an unlimited number of items.
- Item Size:Enter the maximum size permitted for an item, in kilobytes.
- Click [OK] when done.