Using XML to retreive data from remote computer

C

Chris

Hi, i would like to create a program which logs information which can
then be retreived over the internet as an xml file.

Basically i would retrieve the data by using an ip address, and
hopefully some function call, using the machines ip address.

I guess the url would be something like:
mymachine.mydomain.com/temperature.xml

Is this possible, or have i got the wrong idea? Would i need to run a
minature http server or is this done for you with any of the .NET
objects?

Many thanks,

Chris
 
D

Dan Brussee

Hi, i would like to create a program which logs information which can
then be retreived over the internet as an xml file.

Basically i would retrieve the data by using an ip address, and
hopefully some function call, using the machines ip address.

I guess the url would be something like:
mymachine.mydomain.com/temperature.xml

Is this possible, or have i got the wrong idea? Would i need to run a
minature http server or is this done for you with any of the .NET
objects?

A. Is the XML file already created and all you want to do is retrieve
it? If so, you do not need any HTTP stuff - just a LAN connection to
the source of the data. You can use a UNC to a shared path like:
mymachine.mydomain.com/share/temerature.xml

B. If you are building the XML on the fly, it sounds like you will
need some sort of method to perform the collection process and then
return the resulting XML. In this case, for a specific purpose, you
might provide a sort of "server" code that runs on the temperature
collection box and allows other servers to get it's data. Again, this
might depend on what you know about that server.
 
W

William Ryan eMVP

If I understand you correctly, this is the textbook example of what
WebServices are made to address. Are you familiar with them at all and
decided they aren't what you want? If not, I think they'd be the best place
to start.

--

W.G. Ryan, eMVP

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups
 
C

Chris

A. Is the XML file already created and all you want to do is retrieve
it? If so, you do not need any HTTP stuff - just a LAN connection to
the source of the data. You can use a UNC to a shared path like:
mymachine.mydomain.com/share/temerature.xml

B. If you are building the XML on the fly, it sounds like you will
need some sort of method to perform the collection process and then
return the resulting XML. In this case, for a specific purpose, you
might provide a sort of "server" code that runs on the temperature
collection box and allows other servers to get it's data. Again, this
might depend on what you know about that server.

Thanks for the replies, yes i was considering building the xml on the
fly.

I will look into webservices. As for a textbook example, can anyone
recommended a good book in this area?

Also if anyone can point me in the direction of some good samples it
would be much appreciated.

Cheers,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top