For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Sort by

.NET SDK exception '"Client found response content type of 'text/html; charset=iso-8859-1', but expected 'text/xml'"

  • Answer ID 634
  • Published 01/30/2017 03:35 PM
  • Updated 01/30/2017 03:35 PM
  • Permalink
Why is the .NET SDK throwing exception "Client found response content type of 'text/html; charset=iso-8859-1', but expected 'text/xml'"?


If the SDK encounters an response whose type is not text/xml, then it throws that exception.  The best way to find out what is causing the error is to turn on logging and see what is actually sent and received.

Detailed Description

Consider the following request and response logged by the .NET SDK in the log file:

[8/22/2006 12:34:09 PM, Informational]

[8/22/2006 12:34:10 PM, Informational]
<?xml version="1.0" encoding="utf8"?>
<soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd="">
<RequesterCredentials xmlns="urn:ebay:apis:eBLBaseComponents">
<GeteBayOfficialTimeRequest xmlns="urn:ebay:apis:eBLBaseComponents">

<TITLE>404 Not Found</TITLE>
<H1>Not Found</H1>
The requested URL /apiv3intl.html was not found on this server.<P>

[8/22/2006 12:34:10 PM, Error]
Client found response content type of 'text/html; charset=iso88591', but expected 'text/xml'.

From the response, you will see that you have received a html 404 error.  This gives us the hint that something is wrong in our url to which we are making the request. Examining the first line of our request:
[8/22/2006 12:34:09 PM, Informational]
it becomes obvious that the url is incorrect.  To send a SOAP / SDK request, we need to use instead of

If you are already using the correct URL, and you are still seeing this problem, please refer to the guidelines set forth in this knowledge base article:

I am seeing some strange error responses such as "content type of 'text/plain'" and "Internal Server Error"

Version Info 

The code example above was based on the versions specified below:

API Schema Version 549
.NET SDK Version .NET SDK v549.0 full release

Additional Resources

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter