asp如何调用vs2005写的webservice????
asp如何调用vs2005写的webservice????假如vs2005中的webservice是一个很简单的方法如:
public string HelloWorld(string ss,int aa)
{
return "Hello World "+ss+aa;
}
请问我在asp中怎么调用这个方法呀?怎么在调用的时候赋值?谢谢了!
------解决方案--------------------
CreateObject("Msxml2.ServerXMLHTTP")
oXMLHTTP.Open "POST", _
"http://ws.cdyne.com/emailverify/ev.asmx/VerifyEmail", _
False
oXMLHTTP.setRequestHeader "Content-Type", _
"application/x-www-form-urlencoded"
oXMLHTTP.send "email=" & server.URLEncode(email) & "&LicenseKey=" & server.URLEncode(LicenseKey)
Response.Write oxmlhttp.status
If oXMLHTTP.Status = 200 Then
Dim oDOM
Set oDOM = oXMLHTTP.responseXML
Dim oNL
Dim oCN
Dim oCC
Set oNL = oDOM.getElementsByTagName("ReturnIndicator")
For Each oCN In oNL
For Each oCC In oCN.childNodes
Select Case LCase(oCC.nodeName)
Case "responsetext"
emaildata = emaildata & "CodeTxt: " & occ.text & "<br>"
Case "responsecode"
emaildata = emaildata & "Code: " & occ.text & "<br>"
End Select
Next
Next
if status = "" then status = "OK"
Set oCC = Nothing
Set oCN = Nothing
Set oNL = Nothing
Set oDOM = Nothing
else
Status = "Service Unavailable. Try again later"
End If
Set oXMLHTTP = Nothing
end if