Wrox Programmer Forums
|
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2005, 05:24 PM
Authorized User
 
Join Date: Jul 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading xml string from remote server

Hi!

I'm trying a simple routine that pings a remote server and the remote server sends out an XML tagged response "<accepted>http:www.fdfd.com</accepted>", which is then used to get into the remote server. Here's what I've come-up so far:

<%
Response.Buffer = True

Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
Set xml = Server.CreateObject("Microsoft.XMLDOM")

url = "https://www.remoteServer.com/login/suplogin.cfx?id=STD&pass=STDP3SS"

xmlHttp.Open "GET", url, False
xmlHttp.Send
xmlDoc = xmlHttp.ResponseText
xml.async = False
xml.loadXML(xmlDoc)
urlPass = xml.documentElement.childNodes(0).nodeValue
Response.redirect urlPass
%>
If I assign a value (similar to tagged response value) to a local variant as under and use it with the above code it works fine, but as it is it would not work.

E.g. strURL="<accepted>http:www.fdfd.com</accepted>"
xml.loadXML(strURL)

Does anyone have a suggestion how can I make this work???

Appreciate any help!

Nirav



 
Old April 11th, 2005, 02:57 PM
Authorized User
 
Join Date: Jul 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found a way out to my problem. No worries!

 
Old June 10th, 2006, 02:37 PM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What was your solution? I'm having the same problem!






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server reading from XML gunjan.sh SQL Server 2005 1 June 6th, 2008 03:35 PM
XMl Document Reading in SQL Server shashideore SQL Server 2005 1 April 26th, 2007 07:16 AM
how to post xml data to server and reading back js_pandey PHP How-To 0 March 29th, 2006 01:48 PM
Reading XML string using asp itHighway Classic ASP XML 2 March 10th, 2005 11:54 PM
Help sending XML file to server, reading response bradartigue XML 1 September 5th, 2003 07:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.