Actually iam consuming a web service from traditional ASP and trying to read the XML from Javascript. Will appriciate any quick help. Here is the code
<%
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Dim xmlhttp
Dim DataToSend
DataToSend="cono="&Request.querystring("cono")&"&j obid="&Request.Form.Item("JOB_NO")
'DataToSend="cono=001&jobid="&Request.Form("JOB_NO ")
Dim postUrl, output
'postUrl = "http://192.168.0.24/Primac.Systems.WebServices/Service.asmx/GetJobShipToList"
postUrl = "http://192.168.0.33/PrimacSystems.WebServices/GetJobList/Service.asmx/GetJobList"
Set xmlhttp = server.Createobject("MSXML2.XMLHTTP")
xmlhttp.Open "POST",postUrl,false
xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
xmlhttp.send DataToSend
dim jobvalues
jobvalues=xmlhttp.responseText
Response.Write "o/p :" & jobvalues
'Response.Write "o/p|:" & xml.Load(xmlhttp.responseText)
'Else
'Response.Write "Loading for first Time"
End If
%>
|