调用webservice的问题,急求高手帮忙~~~~~~~~~~!!!!!

caicaic 2005-06-23 10:44:26
地址:http://61.137.93.43/axis/services/okeylove?wsdl (只有服务器才可以访问的)

-------------xml 前面的部分-------------------------

<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="http://61.137.93.43/axis/services/okeylove" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://61.137.93.43/axis/services/okeylove" xmlns:intf="http://61.137.93.43/axis/services/okeylove" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
---------------------------------------------------

----------------这是我要调用的函数------------------
- <wsdl:operation name="login" parameterOrder="key userIP">
<wsdl:input message="impl:loginRequest" name="loginRequest" />
<wsdl:output message="impl:loginResponse" name="loginResponse" />
</wsdl:operation>
----------------------------------------------------


我的代码:-->

url = "http://61.137.93.43/axis/services/okeylove"

SoapRequest="key="&key&"&userIP="&userIP

Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")
xmlhttp.Open "POST",url,false
xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
xmlhttp.setRequestHeader "HOST","61.137.93.43"
xmlhttp.setRequestHeader "Content-Length",LEN(SoapRequest)
xmlhttp.setRequestHeader "SOAPAction",""
xmlhttp.Send(SoapRequest)

If xmlhttp.Status = 200 Then
response.Write("yes")

Else
response.Write("no")
Response.Write xmlhttp.Status&" "
Response.Write xmlhttp.StatusText

End if
Set xmlhttp = Nothing

------------------------------------ end

为什么他返回的结果总是: no500 也就是没有连上webservice
这是怎么回事啊,哪些代码写错了吗???
请高手帮我修改一下代码,拜托了
第一次用到webservice, 头都搞晕了
...全文
147 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
caicaic 2005-08-30
  • 打赏
  • 举报
回复
清贴,无奈…
caicaic 2005-06-28
  • 打赏
  • 举报
回复
真的没人能解决了吗?
虽然我用另外的方法解决了,但这个webservice到底是怎么调用的呢?
wangwm 2005-06-24
  • 打赏
  • 举报
回复
比较难,帮你顶
sfwxw0456 2005-06-24
  • 打赏
  • 举报
回复
正在学习中webservice的相关服务操作
学习....顶

28,406

社区成员

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

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