•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Web Development category of DaniWeb, a massive community of 427,177 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,147 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Web Development advertiser: Programming Forums
Nov 2nd, 2006, 4:17 am
These days I’ve been working on creating feed reader which retrieves data from weather.com site. They provide detailed SDK and information you’ll need to read information from their site.
I had to use ASP as script language to read XOAP service data. What is interesting a lot of sites provide good information how to read XML from ASP. And all they say the following code should work:
where xmlURL is path to actual XML resource (in case of weather.com it’s xoap.weather.com/weather/… ). But it did not. When I put there local path to XML file on my local drive - it worked perfectly but when I used remote URL - it said kinda “Empty XML resource”. I spent some time investigating this issue and it turned out that I had to use extra parameter in order to get access to remote URL (as far as I understood from the explanation this problem appears due to older XMLDOM versions and probably it won’t ever happen on newer Windows installation). So final working code looks like this:
I hope that was helpfull
I had to use ASP as script language to read XOAP service data. What is interesting a lot of sites provide good information how to read XML from ASP. And all they say the following code should work:
asp Syntax (Toggle Plain Text)
Set objXML = Server.CreateObject("Microsoft.XMLDOM") objXML.async = False objXML.setProperty "ServerHTTPRequest", true objXML.Load (xmlURL) If objXML.parseError.errorCode <> 0 Then Response.Write objXML.parseError.reason End If
where xmlURL is path to actual XML resource (in case of weather.com it’s xoap.weather.com/weather/… ). But it did not. When I put there local path to XML file on my local drive - it worked perfectly but when I used remote URL - it said kinda “Empty XML resource”. I spent some time investigating this issue and it turned out that I had to use extra parameter in order to get access to remote URL (as far as I understood from the explanation this problem appears due to older XMLDOM versions and probably it won’t ever happen on newer Windows installation). So final working code looks like this:
asp Syntax (Toggle Plain Text)
Set objXML = Server.CreateObject("Microsoft.XMLDOM") objXML.async = False objXML.setProperty "ServerHTTPRequest", true objXML.Load (xmlURL) If objXML.parseError.errorCode <> 0 Then Response.Write objXML.parseError.reason End If
I hope that was helpfull
This blog entry was written by narko. It has received 4,090 views, 0 comments, and 24 linkbacks.
•
•
•
•
.net ajax api asp blogger blogging code custom developer development dom feed gdata google html linspire linux microsoft msdn news office openoffice programming reader rss skin software sql standards theme vista w3c weather web xml xoap
All Recent Tags Post Comment
•
•
•
•
Only community members can start a blog or comment on blog entries. You must register or log in to contribute.
•
•
•
•
•
•
•
•
DaniWeb Web Development Marketplace
Related Blog Entries
- One small step for Google, one giant leap for Flash Designers! (13 Days Ago)
- Microsoft shows JQuery some love (13 Days Ago)
- Firefox 3.03 Released. (14 Days Ago)
- Firefox 3.0.3 on way real soon (16 Days Ago)
- Freelance website designer (17 Days Ago)
- Don't Like Political Ads? Write Your Own (19 Days Ago)
- New Pint-Sized PC Packs a Punch (22 Days Ago)
- Google Desktop: a glimpse of the future? (27 Days Ago)
- In Google Chrome, Cracks Appear (Sep 3rd, 2008)
- Dont Bash Chrome it's doing better in it's first beta then Internet Explorer 8. (Sep 3rd, 2008)
Related Forum Threads
- Community Server? (Existing Scripts)
- A RSS feed reader.... (C#)
- create html file from rss feed (PHP)
- RSS feed doesn't validate but why? (RSS, Web Services and SOAP)
- How to use this site's RSS feed? (DaniWeb Community Feedback)
- RSS Feed Readers (Geeks' Lounge)