大虾进来,帮忙看看webservice代码错在那里.

张叫兽的技术研究院 2006-10-23 03:16:01
大虾进来,帮忙看看webservice代码错在那里.
<%@Language="VBScript"%>
<%
Const WSDL_Path="http://localhost/AspService/WebApplication1/CmpplexType/TransXmlNodeList.wsdl"
Dim xmlDoc
Set xmlDoc=Server.CreateObject("MSXML2.DOMDocument")
xmlDoc.loadXML("<Data><Name>Susan</Name><BirthDay>2006/05/06</BirthDay><Tel>2563987</Tel></Data>")

Dim SoapClient
Set SoapClient=Server.CreateObject("MSSOAP.SoapClient")
SoapClient.ClientProperty("ServerHttpRequest") =True
SoapClient.mssoapinit WSDL_Path
Dim xmlList
Set xmlList=SoapClient.EchoPerson(xmlDoc.documentElement.childNodes)

Dim strPerson
strPerson="The source is Name: " & xmlList.Item(0).text & vbCrlf _
& "the BirthDay: " & xmlList.Item(1).text & vbCrlf _
& "the Tel: " & xmlList.Item(2).text
Response.Write strPerson
%>
当程序运行到"SoapClient.ClientProperty("ServerHttpRequest") =True"
就弹"(0x80020009)
发生意外。"
帮忙指点一下.
...全文
109 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
我是在.net中添加的.asp文件,运行,出现问题.

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧