Discussion Locked

Invoke Webservice using vbscript

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have tried the below code but it is not working. any body can help me. this is vb script code.

Const HOST = "http://localhost/SampleApplication/Simple.asmx"

'Const URL = "Simple.asmx"
Const FORMAT = "Raja"
' Create the HTTP object
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")

xmlhttp.open "GET", HOST & "/GetYourTime?format=" & FORMAT, false

' Send the request synchronously

xmlhttp.send()

'MsgBox HOST & "/GetYourTime?format=" & format
MsgBox xmlhttp.responseText

1 reply

This discussion is closed to new replies.