Invoke Webservice using vbscript - TechRepublic
General discussion
March 8, 2006 at 12:57 AM
rajasrirangan

Invoke Webservice using vbscript

by rajasrirangan . Updated 20 years, 4 months ago

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

This discussion is locked

All Comments