The client finds that the response content type is "text/html", but it should be "text/XML"

Source: Internet
Author: User
Tags server memory
A Data Import error occurred a few days ago: the client found that the response content type is "text/html", but it should be "text/XML ".
So I checked it and made a summary:
1. Add the following information to the configuration file:
<WebServices>
<Protocols>
<Add name = "httpsoap"/>
<Add name = "httppost"/>
<Add name = "httpget"/>
<Add name = "documentation"/>
</Protocols>
</WebServices>

The reason is the specified transmission protocol. ASP. NET can use these transmission protocols to decrypt data sent from the client browser in an HTTP request. Data sent in HTTP requests to XML Web Services can contain method calls and parameters. The preceding example enables all four currently supported protocols. (Mathsword in the csdn Forum ).
2. An error occurs when the web service is running. If the downloaded file is too large and exceeds the server memory, an error is returned. (This is our problem. You can download it in batches later)
3. Check whether the URL path of WebService is correctly configured and whether the runtime environment is correct. (It's almost the same as not to mention it. Just remind me. ^_^)

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.