The content type text/xml; charset=ISO-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8).

The content type text/xml; charset=ISO-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8).

 

What can I change in the code to not receive the error.

 

 

 Here is my code:

 


         private string TestServer2(int zipcode) // http://www.foreclosuredatabank.com/soapserver.php?wsdl   
        {
            
            string results1 = "No results";
            CreditsApp1.Foreclosures.serverlatestPropertiesPortTypeClient sr2 = null;
            sr2 = new CreditsApp1.Foreclosures.serverlatestPropertiesPortTypeClient();
            
            try
            {
                results1 = (string)sr2.latestProperties(zipcode.ToString());
            }
            catch (Exception exx1)
            {
                //The content type text/xml; charset=ISO-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8).
                Clipboard.SetData(System.Windows.Forms.DataFormats.Text, exx1.Message);
                MessageBox.Show("Error: " + exx1.Message, "TestServer2 Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            return results1;
        }

0
cupboy
7/18/2007 10:14:10 PM
asp.net.xml-web-services 7071 articles. 0 followers. Follow

3 Replies
3600 Views

Similar Articles

[PageSpeed] 53

Hi,

Below code works fine on my pc:

        try
        {           
            serverlatestProperties slp = new serverlatestProperties();
            Response.Write(slp.latestProperties("10036"));
        }
        catch (Exception e1)
        {
            Response.Write(e1.Message);
        }

 And here is output:

Property ID: 153805
City: New York
State: NY
Price: N/A
County: New York
Register Date: 2006-03-10
Link: ¬ Listings details

I simply add http://www.foreclosuredatabank.com/soapserver.php?wsdl as web reference to my project.


NOTE:If you find my response contains a reference to a third party World Wide Web site, I am providing this information as a convenience to you.Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,Microsoft cannot make any representations regarding the quality,safety, or suitability of any software or information found there.
__________________________________________________

Sincerely,
Young Fang
Microsoft Online Community Support

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
0
Young
7/23/2007 7:01:35 AM

Thanks. Could you try it with Version 9.0.20404.0 Beta 1 ?

 

That's all I have here at work. When I get home I can try it with the current version of Visual Studio. 

0
cupboy
7/23/2007 3:36:30 PM

Hi ,

I don't have Version 9.0.20404.0 Beta 1 installed on my pc. If you still have problem please feel free to post it here.Thanks.


NOTE:If you find my response contains a reference to a third party World Wide Web site, I am providing this information as a convenience to you.Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,Microsoft cannot make any representations regarding the quality,safety, or suitability of any software or information found there.
__________________________________________________

Sincerely,
Young Fang
Microsoft Online Community Support

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
0
Young
7/24/2007 10:13:29 AM
Reply:

Similar Artilces:

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'
I have no idea how to resolve this error when I debug in VS 2003.  I know this page is using an XMLService I setup that I got from another coder but what the heck does this all mean?Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title>Configuration Error</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} ...

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
Friends, When i try to contact my web service , it is giving the following error: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. How can i solve this? Thankyou .   Usually, that error occurs when there is an internal problem with the web service.  What happens is that an HTML error page is being returned (hence the type of text/html) instead of the expected XML-formatted message (the text/xml). Try hitting the web service with a browser.  The standard web service documentation page would be sufficient.  The resp...

Client found response content type of 'text/html;charset=utf-8' but expected 'text/xml'
Hi .I have a problem in running an application that , use SQLSERVER 2000 as a database , vb.net 2005 ..net framwork 2 asp.net2, when i want to run this error appeare. Client found response content type of 'text/html;charset=utf-8' , but expected 'text/xml'. i should demonstrat that i have vo sourcecode (only an exe file).i think that the problem origin from iis configuration but dont know exactly where!also when i brows my webservices from virtual directory(in IIS) i can see all the method in my webservice. could u please help me. It appears some exception i...

Error : Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
When i try to use a web service and get a dataset of just a string form it , the response are like this"Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. "p.s. i don't know this question should be posted here or somewhere , hope someone can help me to solve it ,Thx a lot .from jacky...

How to solve Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml' error
When I call the services from exe file then I got the error,how can I solve this error plz help me...............     {"Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.\r\nThe request failed with the error message:\r\n--\r\n<?xml version=\"1.0\" ?>\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"/r/nhttp://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" >\r\n<head>\r\n   <title>Server Unav...

"System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
I implemented AJAX in 2.0 application .. and its working fine.. but a web service application is thier with in this appliaction.. for other 1.1 application. when the 1.1 application access this web service i get error.   **************************ERROR MSG************************************   System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.The request failed with the error message:--<html>    <head>        <title>Conf...

UTF-8 ??? <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I'm using the UTF-8 character set in my web pages, e.g. my meta tag seen above. Is this the best character set to use? Is there any reason to use a different character set? -- Everybody has two dogs inside them, a good dog and an evil dog, both always fighting. It is up to each person to decide which dog to feed. "Greg" <.@.> wrote in message news:floete$30bv$1@news.grc.com... > I'm using the UTF-8 character set in my web pages, e.g. my meta tag seen above. > > Is this the best character set to use? > > Is there any reason to use...

Web service client and content type not text/xml
Hi. I'm trying to connect to a web service (third party). The web service's response is served as application/xml, instead of the usual text/xml I've used to see. I have 2 questions about that: A) Is that a standard and valid way of serving a WS-I compliant, standard, SOAP web service? B) The proxy client (the class autogenerated by VS) crash saying it expected text/xml and found application/xml. Is there a way to force it to eat it? Thank you! I know I posted this months ago, but I'm still curious about this :) Back then we simply got the third party to change things by...

decoded_content and page with content-type application/xhtml+xml; charset=utf-8
--_9788eb24-531d-4f44-a67e-0433e50953c7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable message->decoded_content doesn't decode this page: http://www.silkeborgbibliotekerne.dk/om+bibliotekerne/kontakt/sp%c3%b8rg= +bibliotekaren because the content-type is: application/xhtml+xmland decoded_content expe= cts the content-type to start with "text" from message.pm: if ($ct && $ct =3D~ m=2C^text/=2C=2C) { according to this page: http://www.w3.org/TR/xhtml-media-types/#application= -xhtml-xmlthe con...

Invocation Error
This is my first foray into consuming webservices... Basically, I want to use a webservice to do UPC code lookups. I used the sample webservices as a blueprint. I attached a document with whatever documenation I could think of. Any help would be appreciated. Thanks, Kevin begin 666 upclookup.doc MT,\1X*&Q&N$`````````````````````/@`#`/[_"0`&```````````````" M````A0``````````$ ``AP````$```#^____`````(,```"$````________ M____________________________________________________________ M____________________________________________________________ M...

Getting "Content-Type: text/html; charset=ISO-8859-1" strings in my pages :(
------=_Part_52451_29236372.1168334260417 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I have just started to write CGI scripts having spent many years writing perl scripts on unix. My first script seems to have thrown up this gotcha and I am having trouble finding out what I have done wrong and why. My script is designed to create a config file by asking some questions via an HTML form 1 question at a time. Each time I create the a form I store the previous answer inside hidden fields I start...

Content-Type: text/xml
I've added text/xml .xml to the mimetype.cfg, but the GWIA (65.1) does not add the Content-Type: text/xml to the Internet Header. It adds Content-Type:text/plain. How can I get the GWIA to recognise that extensions with .xml should be Content-Type: text/xml ? Following is a cut from the converted file in the GWIA\DEFER directory; Thanks for any help. Judy. --=__Part0021652B.0__= Content-Type: text/plain; name="showshipment.xml" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="showshipment.xml" <?xml version="1.0"...

Error: content type of 'text/html; but expected 'text/xml'.
Hi, I've created a webservice, which is working fine in development environment and UAT environment. but i received following error often in staging environment, not all the time. ------------------ Client found response content type of 'text/html; charset=Windows-1252', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title>Runtime Error</title> <style> body {font-family:"Verdana";font-we­ight:normal;............ and so on. Description: An unhandled exception occurred during the execution of the current web request...

Client found response content type of '', but expected 'text/xml'
Hi !                            I got the following error as alert, when i opened Visual Studio Team System (VSTS). No where iam using Webservice.When i click OK, it is alert box closed.I can proceed with my work space version.But when i interact with TFS(Team Foundation Server) again it is giving same alert.Iam not able to connect TFS server to get latest version / to check out/ to check in..etc.        &nb...

Web resources about - The content type text/xml; charset=ISO-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8). - asp.net.xml-web-services

Resources last updated: 12/18/2015 10:14:13 PM