Message Transmission Optimization Mechanism (MTOM) is a method to efficiently send binary data to and from Web services, it is a W3C Recommendation.
Questions tagged [mtom]
366 questions
71
votes
3 answers
How does MTOM work?
MTOM is the W3C Message Transmission Optimization Mechanism, a method of efficiently sending binary data to and from web services.
How does it work in general?

Brian R. Bondy
- 339,232
- 124
- 596
- 636
40
votes
2 answers
basicHttpBinding vs wsHttpBinding
In a WCF endpoint, what is the difference between basicHttpBinding and wsHttpBinding? When should each be used?

Craig Schwarze
- 11,367
- 15
- 60
- 80
32
votes
4 answers
java.lang.NoSuchFieldError: REFLECTION
I'm creating a project with CXF and use MTOM with some security (I don't know if that information is relevant).
When I tried initialize my server I received that error:
org.springframework.beans.factory.BeanCreationException: Error creating bean…

arthurfnsc
- 915
- 3
- 13
- 30
21
votes
1 answer
SOAP MTOM calls with Python
I'm currently working on a web toolkit in python and I have to make a lot of SOAP calls. Unfortunately for me, a couple of those calls use MTOM. I'm currently using SUDS and I would like to know if it's possible to do MTOM calls with it (I can't…

Pamput
- 2,634
- 2
- 16
- 16
18
votes
1 answer
What's the difference between MTOM and the attachment features provided by SAAJ?
SAAJ: SOAP with Attachments API for Java
MTOM: SOAP Message Transmission Optimization Mechanism
My simple understanding: they deal with SOAP attachments, with MTOM being the more optimized version of SAAJ. Is this correct?
Are they simply 2…

Jops
- 22,535
- 13
- 46
- 63
17
votes
3 answers
How to abort a stream from WCF service without reading it to end?
This is a problems I've been investigating in the last week and can't find any solution. Found posts asking the same but never getting an answer, hopefully this will help others as well.
I have a WCF service that returns an object containing a…

Yev
- 276
- 3
- 13
13
votes
4 answers
WCF Exists and partially working but for some calls returns "no endpoint listening - (404) Not Found."
We have service that's working with small to large sets of data (document generation), and it's working fine for some calls, but for some specific requests (exact same method, different arguments) it just…

veljkoz
- 8,384
- 8
- 55
- 91
13
votes
5 answers
How do I mix message encoding types (Text/MTOM) in the Request & Response of a Web Service client application using WCF (or WSE 3)?
Here is my problem. I am hitting a web service (hosted on a Java based server) that will only accept text encoded Requests, but it returns MTOM Responses. What I've found is that if I set the web service to RequireMtom, it sends an Mtom request!…

komma8.komma1
- 1,250
- 2
- 14
- 20
11
votes
2 answers
Powershell: Error consuming WCF services with MTOM message encoding
I'm currently exploring powershell capabilities, but I have encountered a problem that I have not been able to solve. Any quick tips would be greatly appreciated =)
My goal:
Invoke methods from a WCF service (configured with MTOM message encoding)…

Tung
- 5,334
- 1
- 34
- 41
10
votes
2 answers
JAX-WS always sends MTOM attachments inline
Basically I want to create a web services client to send a mtom soap message via the proxy method. I have created my service artifacts fine from the web service wsdl. The message is created correctly, however when I enable mtom and add an…

AlexS
- 650
- 6
- 12
10
votes
3 answers
WCF: (MTOM) is there any way to change the scheme used in xop:Content reference uris generated by WCF?
WCF uses http://tempuri/1/number for Content-ID uri references when handling streamed MTOM requests.
Is there any way how to force WCF to use a different Content-ID references for the xop:Include?
Background of the problem:
I am building a .NET…

Marek
- 10,307
- 8
- 70
- 106
9
votes
6 answers
Adding an attachment to SOAP request
I am at a loose end as to how to add an attachment in my SOAP request. We have to consume a thrid party web service, built in java, which is the most convoluted thing I have ever come across. Any other web services we have used, that required…

anothershrubery
- 20,461
- 14
- 53
- 98
9
votes
3 answers
How does MTOM work + sample code
I am trying to make a very simple web-service which does the following:
The client hits the web service requesting a file.
The web service's service class queries a hashtable which has the key (search query) and the value as the base64encoded value…

zengr
- 38,346
- 37
- 130
- 192
8
votes
2 answers
how do I test an MTOM webservice with soapUI?
I've built a webservice that wraps Apache FOP. You send it XML, and it gives you an MTOM stream that contains the rendered PDF. Now that its working, I'd like to run some performance tests on it. soapUI says they support MTOM, and I use it for all…

nont
- 9,322
- 7
- 62
- 82
8
votes
3 answers
How to parse XOP/MTOM SOAP response using java?
I just want to know, is there any simple way for parsing MTOM/XOP SOAP response.
The problem is that I use plain HTTP to send soap message and javax.xml for parsing response. But some services responds me with mulipart/related and it requires…

Oleg Kandaurov
- 316
- 1
- 6
- 12