Client found response content type of 'multipart/related; type="application/xop+xml"; start="<soap.x
2014-12-02 17:21
716 查看
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服务
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服务
相关文章推荐
- Client found response content type of ‘multipart/related’, but expected ‘text/xml’.
- Client found response content type of ‘multipart/related’, but expected ‘text/xml’.
- WCF学习问题之:响应消息的内容类型 multipart/related; type="application/xop+xml"……
- Web.xml配置<taglib>标签报错问题(cvc-complex-type.2.4.a: Invalid content was found starting with element 'tag
- client found response content type of text/html charset=utf-8 but expected text/xml
- The content type application/json of the response message does not match the content type of the binding (application/soap+xml;
- <b>Fatal error</b>: Class 'SoapClient' not found in <b>
- hibernate:newclass.hbm.xml文件错误(the content of element type "class" must match "(meta*,column*,type?generator?...)
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- web.xml中提示错误The content of element type "web-app" must match
- The value of attribute "description" associated with an element type "target" must not contain the '<' character.
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- 错误 1 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::str
- web.xml 报错The content of element type "web-app" must match
- "org.xml.sax.SAXParseException: The content of element type "class" must match" 异常解决
- Unable to cast COM object of type 'Word.ApplicationClass' to interface type 'Word._Application'"
- context.Response.ContentType = "image/jpg"导致的无法显示 XML 页
- org.xml.sax.SAXParseException The content of element type "package" must match "(result-types?,inter
- error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::wstring'
- struts-config.xml配置文件顺序异常: The content of element type "struts-config" must match