ASP.NET 2.0 Webservice call from ASP
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I am using following code to call ASP.NET webservicemethod. When I put URL in browser, it works. But when I use MSXML2.XMLHTTP, it fails. any clues? CODE: postUrl = "http://Server/VDir/MyWebService/NewService.asmx/MyMethod" Set xmlhttp = server.Createobject("MSXML2.XMLHTTP") xmlhttp.Open "POST",postUrl,false xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" xmlhttp.send DataToSend Response.Write(xmlhttp.responseText) Appreciate your help
- ashish