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:o Ut></ns1:uploadresponse></soap:body></soap:envelope>
------=_part_10_473535837.1417501736399--
Workaround:
Call Mode:
. NET calls Java WebServices (Xfire, open Mtom)
Error Description:
Client (. NET): Error consuming WebService, Content type "Application/xop+xml" does not match expected type "Text/xml"
Service side (Xfire): normal
Workaround:
1, the installation of WSE components;
2, in the configuration file to add the following configuration:
<microsoft.web.services3>
< messaging>
<mtom Servermode = "optional" Clientmode = "on"/>
</messaging>
</microsoft.web.services3>
3, the WEB service proxy class to inherit from the Microsoft.Web.Services3. WebServicesClientProtocol
Wse-mtom invoke Java Web Service