Client found response content type of 'multipart/related; type="application/xop+xml"; start="<soap.x

Client found response content type of 'multipart/related; type="application/xop+xml"; start="<soap.xml@xfire.codehaus.org>"; start-info="text/xml";    boundary="----=_Part_10_473535837.1417501736399"', but expected 'text/xml'.
The request failed with the error message:
--

------=_Part_10_473535837.1417501736399
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: 8bit
Content-ID: <soap.xml@xfire.codehaus.org>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><ns1:uploadResponse xmlns:ns1="http://ehr.collect.ws.exchange.lgws.hnisi.com"><ns1:out><resp><status>1</status><serialNumber>2014120214285600334790</serialNumber><error/></resp></ns1:out></ns1:uploadResponse></soap:Body></soap:Envelope>

------=_Part_10_473535837.1417501736399--


解决方法:

调用方式:

.net 调用 java WebServices(xfire,开启了MTOM)


错误描述:

客户端(.net):Error consuming webservice, content type “application/xop+xml” does not match expected type “text/xml”

服务端(xfire):正常
 

解决方法:

1、安装WSE组件;

2、在配置文件中增加如下配置:    

<microsoft.web.services3>
    < messaging>
        <mtom serverMode ="optional" clientMode ="On" />
    </ messaging>
</microsoft.web.services3>  

3、web服务代理类要继承自   Microsoft.Web.Services3. WebServicesClientProtocol

WSE-MTOM方式调用Java Web服务


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值