Skip to main content

Forcing Requests as MTOM Packages

Forcing Requests as MTOM Packages

You can force an InterSystems IRIS web client to send every request as an MTOM package. To do, do either of the following:

  • In your InterSystems IRIS web client class, set the MTOMREQUIRED parameter to 1.

  • In your InterSystems IRIS web client instance, set the MTOMRequired property to 1.

  • Attach a policy statement to the web client to send MTOM packages. To do so, you create and compile a configuration class that refers to the web service client; in this policy, enable use of MTOM. See Securing Web Services.

    If you attach such a policy statement, your values for MTOMREQUIRED is ignored, and MTOMRequired is set equal to 1.

Effect on the WSDL

MTOMREQUIRED and MTOMRequired do not assume any change in the WSDL of the web service used by this web client.

A policy statement that refers to MTOM does affect the WSDL. That is, you would add an MTOM policy statement to a client only if the web service required it.

FeedbackOpens in a new tab