PDA

View Full Version : XMLHTTP In ASP


ParrotBoy
01-10-2003, 18:01
OK, today I discovered the "Joy of RSS", which is a way of syndicating content over the web, mostly news and blog stuff. I have converted the XML of my sites news items into RSS 2.0 standard and got it all working. My problem is with pulling in stuff from other sites onto our Intranet. I'm using the following code:


Dim xmlHttp, xmlResponse

Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.4.0")
xmlHttp.Open "Get", "http://www.juicystudio.com/message/juicyrss.xml", False, "bmbcntd\WinHttp", "WinHttpRequest"
xmlHttp.Send()

Set xmlResponse = Server.CreateObject("MSXML2.DomDocument.4.0")
xmlResponse.async = false
xmlResponse.LoadXml(xmlHttp.ResponseText)
Set xmlHttp = Nothing

Response.Write xmlResponse.DocumentElement.NodeName
Set xmlResponse = Nothing

and I get this error:
The system cannot locate the resource specified.

only on external files, stuff on internal servers works fine... The password is OK, its the same one we use for POST with XMLHTTP.

Any ideas?

BTW if you want to see the (very boring) site I build, its here:
http://www.barnsley.gov.uk

AlastairM
01-10-2003, 21:25
I had this problem at work, in my case it had to do with the proxy configuration being changed after applying SP3 to windows 2000, it doesn't let the XML component have internet access by default.

check http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/serverxmlhttpproxy.asp

which helped me get it fixed.

cheers

alastair

ParrotBoy
03-10-2003, 15:25
I've been round, and round, and round on the site and I can't find the download page for proxycfg.exe anywhere.

Any chance you still have a copy you can send me?

AlastairM
04-10-2003, 16:35
http://19nine78.net/kustom/proxycfg.exe

cheers

alastair