Does MTOM require a messageContract in WCF?
Is there any way use datacontracts while using M开发者_StackOverflowtom?
There's nothing preventing you from using data contracts with MTOM.
no, but the only thing in the body of the message must be the file. if you have more than one parameter in the method, you must use a message contract because you have to specify where the things will go, on the header or on the body. This way you can put only the file in the body.
精彩评论