今天同事调用一个webservice时返回类似错误
响应消息的内容类型 multipart/related; type="application/xop+xml"; boundary="uuid:026bd32a-6fb3-45a6-8559-fe68024bfe2a"; start="<root.message@cxf.apache.org>"; start-info="text/xml" 与绑定(text/xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现
搜索找到这个地方
原来只需修改配置的编码方式为“Mtom”就能解决问题
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding messageEncoding="Mtom">
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
webservice有关application/xop+xml的异常
原文:http://www.cnblogs.com/wpcnblog/p/7130330.html