VB调用Webservice出错

tangxinzitxz 2011-10-13 10:47:31
Dim h As MSXML2.ServerXMLHTTP40
Dim strWebserviceURL As String
Dim x As MSXML2.DOMDocument40
Dim rs As New ADODB.Recordset
Set x = New MSXML2.DOMDocument40
Set h = New MSXML2.ServerXMLHTTP40
strWebserviceURL = "http://localhost:27651/WebService1.asmx/GetPerson"
h.Open "post ", strWebserviceURL, False
' h.setRequestHeader "Content-Type", "text/xml;charset=utf-8"
h.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
x.Load h.responseXML
rs.Open x (这一步报错)
这是Webservice的显示结果
请指教。
...全文
55 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ruanwei1987 2011-10-13
  • 打赏
  • 举报
回复
mark

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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