Skip to main content

Mixing MTOM and non-MTOM responses within a single endpoint

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2010-11-21

The documentation says that MTOM feature can be enabled globally for entire endpoint by adding @MTOM annotation. Is there a way to enable MTOM only for certain operations and disabling it for others?
We need to support non-MTOM server responses for all existing operations that don't require attachments (to avoid breaking existing clients), while at the same time supporting MTOM for some of the newly added operations. Putting all operations that require MTOM into a separate WSDL is one option, but is there a way to avoid that?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-10-24

Using MTOM policy lines, it should be possible to configure your service in such a way that it supports both types of clients. At least, that is what I understand from the documentation.