Client found response content type of ' multipart/related; Type= "Application/xop+xml"; Start= "

Source: Internet
Author: User
Tags soap java web
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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.