Error consuming webservice, content type “application/xop+xml” does not match expected type “text/xml”

前端 未结 7 1801
我在风中等你
我在风中等你 2020-11-30 03:16

I\'m having a weird issue when consuming a webservice for a product that my company has bought. The product is called Campaign Commander and it\'s made by a company called

相关标签:
7条回答
  • 2020-11-30 03:53

    After having struggled with this for a few days, I found a remarkably simple solution for this problem:

    1. Activate the Configuration Editor by selecting Tools->WCF Service Configuration Editor from the main menu in VS2010;
    2. Close it again;
    3. Right-click on the App.Config file to find a new menu item "Edit WCF Configuration";
    4. Click on the binding;
    5. Change the MessageEncoding to Mtom;
    6. Save.

    I hope this will help someone.

    0 讨论(0)
提交回复
热议问题