急求webservices错误捕捉方法,

zhupeibin 2010-08-02 09:13:26
我的源码:<%
Dim soapclient
Const WSDL_URL = "http://111.111.111.111/KFWEB/kfsf/studentdebt.asmx?wsdl"
set soapclient = Server.CreateObject("MSSOAP.SoapClient30")
soapclient.ClientProperty("ServerHTTPRequest") = True
soapclient.mssoapinit WSDL_URL
res = soapclient.GetStudentDebt(xh,Application("G_XqssXnd"))
'response.write(res)
%>
<%
dim xmlStr
xmlStr="<?xml version=""1.0"" encoding=""gb2312""?><root>"&res&"</root>"

set xml = server.createobject("Microsoft.XMLDOM")
xml.loadXML(xmlStr)
xml.async = false
set XmlXh = xml.selectsinglenode("//root/Student/StudentDebt/Xh")
set XmlXm = xml.selectsinglenode("//root/Student/StudentDebt/Xm")
set XmlJq = xml.selectsinglenode("//root/Student/StudentDebt/Jq")

if XmlXh.text=xh and XmlJq.text=1 then
nfzc=1
else
nfzc=0
end if

set xml = nothing
%>
问题:如果出现错误或连接超时的情况,请问如何捕捉.
我用的控件是SoapToolkit30.EXE
...全文
32 点赞 收藏 4
写回复
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
caizhuguanguan 2010-08-02
顶啊顶。。。接分
回复
zhupeibin 2010-08-02
搜索了很多了,找不到啊
回复
kaifadi 2010-08-02
网上查控件SoapToolkit30.EXE的资料找不到吗?帮顶了。
回复
zhupeibin 2010-08-02
顶,,,,,,,顶啊顶。。。
回复
发动态
发帖子
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
社区公告
暂无公告