调用webservice的问题,急求高手帮忙~~~~~~~~~~!!!!!
地址: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, 头都搞晕了