K
Ken Pinard
I am getting an internal error (500) when I call my web service from an ASP
script. If I put the http line into the browser it returns the correct
result. Below is the code I am using.
Please help,
Ken
strServer = http://localhost/pinrod/interface.asmx/validate
set httpobj = CreateObject("MSXML2.XMLHTTP")
httpobj.open "POST", strServer, false
httpobj.send() 'result
result = result & "after send: " & now & "<br>"
result = result & "status value: " & httpobj.status & "<br>"
result = result & "status text: " & httpobj.statustext & "<br>"
The definition of the web service is as follows:
<WebMethod()> _
Public Function ValidateOrder() As String
' Dim req As HttpRequest
Dim result As String = "<p>start validate order </p>"
Return result
End Function
script. If I put the http line into the browser it returns the correct
result. Below is the code I am using.
Please help,
Ken
strServer = http://localhost/pinrod/interface.asmx/validate
set httpobj = CreateObject("MSXML2.XMLHTTP")
httpobj.open "POST", strServer, false
httpobj.send() 'result
result = result & "after send: " & now & "<br>"
result = result & "status value: " & httpobj.status & "<br>"
result = result & "status text: " & httpobj.statustext & "<br>"
The definition of the web service is as follows:
<WebMethod()> _
Public Function ValidateOrder() As String
' Dim req As HttpRequest
Dim result As String = "<p>start validate order </p>"
Return result
End Function