通过异常的Web服务 [英] web service through an exception

查看:79
本文介绍了通过异常的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

调用Web服务的功能时出现异常
我设置objProxy.timeout = 10000
但没用

以下是异常消息

客户发现响应内容类型为"text/html",但预期为"text/xml".
请求失败,并显示错误消息:
-

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:
--

<!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>



-.



--.

推荐答案

尝试对服务进行ping操作,以查看它是否首先启动.

Web服务也不返回您期望的结果.
服务端可能存在一些错误,或者您向该服务发送了不正确的参数.

如果可能,请尝试调试服务.
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.


这篇关于通过异常的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆