Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all

i got an exception when i call a function of my web service
i set objProxy.timeout=10000
but no use

here below is the exception message

Client found response content type of 'text/html', but expected 'text/xml'.
The request failed with the error message:
--
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>
<STYLE id=L_64r_1>A:link {
	FONT: 8pt/11pt verdana; COLOR: #ff0000
}
A:visited {
	FONT: 8pt/11pt verdana; COLOR: #4e4e4e
}
</STYLE>

<META content=NOINDEX name=ROBOTS>
<META http-equiv=Content-Type content="text-html; charset=UTF-8">

<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<table cellspacing="5" cellpadding="3" width="410">
  <tbody>
  <tr>
    <td valign="center" align="left" width="360">
      <h1 id="L_64r_2" style="FONT: 13pt/15pt verdana; COLOR: #000000"><id id="L_64r_3">&lt;!--Problem--&gt;The page cannot be displayed
</id></h1></td></tr>
  <tr>
    <td width="400" colspan="2"><font id="L_64r_4&lt;br" mode="hold" />      style="FONT: 8pt/11pt verdana; COLOR: #000000"&gt;<id id="L_64r_5"><b>Explanation: </b>The Web server connection was closed.</id></td></tr>
  <tr>
    <td width="400" colspan="2"><font id="L_64r_6">
      style="FONT: 8pt/11pt verdana; COLOR: #000000"&gt;
      <hr color="#c0c0c0" noshade="">

      <p id="L_64r_7"><b>Try the following:</b></p>
      <ul>
        <li id="L_64r_8"><b>Refresh page:</b> Search for the page again by clicking the Refresh button. The timeout may have occurred due to Internet congestion.
<li id="L_64r_9"><b>Check spelling:</b> Check that you typed the Web page address correctly. The address may have been mistyped.
<li id="L_64r_10"><b>Access from a link:</b> If there is a link to the page you are looking for, try accessing the page from that link.
<li id="L_64r_11"><b>Contact website:</b> You may want to contact the website administrator to make sure the Web page still exists. You can do this by using the e-mail address or phone number listed on the website home page.

      </li></li></li></li></ul>
      <hr color="#c0c0c0" noshade="">

      <p id="L_64r_12">Technical Information (for support personnel)</p>
      <ul>
        <li id="L_64r_13">Error Code 64: Host not available
<li id="L_64r_14">Background: The connection to the Web server was lost.

        </li></li></ul></hr></hr></font></td></tr></tbody></table></BODY></HTML>


--.
Posted
Updated 11-Jul-12 0:13am
v2

1 solution

Try to ping the service to see if it is up in the first place.

The web service is nor returning what you expected.
There is possible some error on the service side or you are sending incorrect parameters to the service.

Try debugging the service if possible.
 
Share this answer
 
v2
Comments
sharmarun 11-Jul-12 2:20am    
not able to debug right now

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900