467,915 Members | 1,178 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

Reading and Displaying XML in Javascript

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
%>
Sep 11 '07 #1
  • viewed: 1559
Share:
2 Replies
jkmyoung
Expert 2GB
Sounds like you're posting your response from a different thread into this forum. We'd need more context if we're to help you. What is it you want to do?
Sep 14 '07 #2
I am consuming web service in classic ASP and web service responses XML, and want the result to assin to form elements.
Sep 18 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Ken | last post: by
5 posts views Thread by joaopedrogoncalves | last post: by
7 posts views Thread by swethasivaram | last post: by
3 posts views Thread by mbaynham | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.