Question

I have a WCF service, which expose multiple operation contracts. One contract is to upload a large file. So I want to use MTOM message encoding for that method and text encoding for other methods? How do I create a single service and use text and MTOM message encoding?

Was it helpful?

Solution

Each service contract has to be exposed on separate endpoint so for your upload file contract you can define endpoint with binding using MTOM encoding and for other contracts you can define endpoints with binding using text encoding.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top