Using Yahoo! Maps, Google Maps or similar available Web services, create an rssG
ID: 666518 • Letter: U
Question
Using Yahoo! Maps, Google Maps or similar available Web services, create an rssGEO2.0.xml document that will group and display at least five different geographical locations. The theme of the locations is up to you, but include your favorite vacation destinations, restaurants, nightclubs, or places you used to live. Post your XML file on a server and use an http GET query to display the results. Submit for grading the XML file along with the http GET query and a description of the process you used for this portion of the project. Also submit a screen shot that clearly demonstrates the final product of this option. Also submit a screen shot demonstrating your work.
I have no idea where to start with this. I made a .xml file but even then I have no idea where to go from there. I will include my .xml and hopefully someone can give me some further guidance for this assignment.
<rss version="2.0"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:georss="http://www.georss.org/georss"
xmlns:ymaps="http://www.google.com/Maps/V1">
<channel>
<title>A little taste of me</title>
<item>
<title>Tripler Army Medical Center, Honolulu, HI</title>
<description> The hospital I was born in. </description>
<geo:lat>21.3607128</geo:lat>
<geo:long>-157.8887953</geo:long>
</item>
<item>
<title>Wenden Dr, Arizona City, AZ</title>
<description> The area I was raised in since I was 3 years of age. </description>
<geo:lat>32.877422</geo:lat>
<geo:long>-117.133420</geo:long>
</item>
<item>
<title>Recruit Training Command, North Chicago, IL</title>
<description> The place I trained for 8 weeks to become part of the US Navy. </description>
<geo:lat>42.3054991</geo:lat>
<geo:long>-87.8477526</geo:long>
</item>
<item>
<title>Corry Station, Pensacola, FL</title>
<description> The training command I attended for 24 weeks after boot camp. </description>
<geo:lat>30.4058321</geo:lat>
<geo:long>-87.2915066</geo:long>
</item>
<item>
<title>Naval Station Norfolk, Norfolk, VA</title>
<description> My first duty station after I finished my military training. </description>
<geo:lat>36.9449984</geo:lat>
<geo:long>-76.3133944</geo:long>
</item>
</channel>
</rss>
Explanation / Answer
Once the xml file is created fulfilling the requirement mentioned in the question, that can be saved in server in specific location..
For that, we can create any service listening on HTTP for example WCF.
Once the service is started and ready, we can open a open socket to the host of the server on port 80 oy any port explicitly mentioned in URL where the Xml file resides.
Once the connection established, we can send the HTTP request through the socket as below
GET <URL of XML file, leaving the host part> HTTP/1.0
Here, HTTP/1.0 is the http version.
Once that executed, raw response will be coming from the server.So, that need to be parsed to extract the results.Basically, the header parts need to be removed.
[Note: The client can be created using script where using telnet the connection can be extablished and then the GET need to be executed.Offcourse, the response need to be parsed.
Or,
The same can be implemented using C# apis such WebRequest, which internally make HTTP get request and then we can get the response back using GetResponse api.That can be in the form of stream. We can parse and print the results.
]
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.