开发者

The request failed with HTTP status 415

开发者 https://www.devze.com 2023-02-23 00:32 出处:网络
I am getting an exception when I try开发者_Go百科 to call method from WCF...I am consuming WCF in windows application using framework 2.0 and my WCF uses the BasicHttpBinding option...

I am getting an exception when I try开发者_Go百科 to call method from WCF...I am consuming WCF in windows application using framework 2.0 and my WCF uses the BasicHttpBinding option...

The request failed with HTTP status 415: Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'multipart/related; type="application/xop+xml"'


The client application is failing as it sends data on an Endpoint which is expecting MTOM messages. However, the client application just sends plain Soap messages (Soap1.1). If you can't upgrade your client application to use .Net Framework 3.5, you can use WSE 3.0 which allows to use MTOM with .net framework 2.0.

If you can upgrade application to 3.5, you can use WCF to communicate to service.

Regards, Amit Bhatia

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号