Jump to content

Transfer XML files from Web Server to Mobile Device


Guest juliusdev

Recommended Posts

Guest juliusdev

I was able to transfer an XML file from the web server to the pocket pc with the following code running on the pocket pc:

Dim xmldoc As New Xml.XmlDocument

xmldoc.Load("http://172.194.16.71/webappname/xmlfile.xml")

xmldoc.Save("Windowsxmlfile.xml")

That will save the file under the Windows folder of the Pocket PC.

Does any body know how to do the reverse thing?

Transfering an XML file from the mobile device to some folder in the server machine?

juliusdev

Link to comment
Share on other sites

Guest pagem2uk

I've not looked at the file transfer facilities from Smart Device to server but depending on your intention an option might be to have a web service running on the server which exposes a webmethod for update which takes an (the revised) xml doc as a parameter.

This fits nicely with the idea of being able to download an xml doc from the server to the device, change the doc on the device and communicate the new xml doc to the server. Code remains simple on the device and any merge logic sits on the server where you have the full .Net framework.

Also if you expose this function as a web service you can get to it from (almost) any device.

Hope this helps.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.