Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Web Service, XML Serialization, HTTP Download

Web Service, XML Serialization, HTTP Download

Scheduled Pinned Locked Moved Mobile
mobilesysadminwindows-adminxmljson
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ian Uy
    wrote on last edited by
    #1

    Good Day, I have a Class Person, this class have members like Name, Age, Address and Picture. I then have a List<person which contains 2 instance of Class Person. I serialized the list using XMLSerializer and was able to produce an XML file. I then hosted the XML file on my local IIS. I created a simple Mobile Application to download the XML File. The XML file was downloaded and deserialized successfully. However, it took nearly 1.5 minutes to download a 213KB XML file via HttpRequest-HttpResponse. So, I tried creating a web service. The webservice deserializes the XML file then returns the List.

    [WebService]
    public List<person> GetPersonData()
    {}

    This time, it was faster since it just took 29 seconds to get my data. However, 29 seconds is still too long for a 213KB file and I expect that the XML data will reach at least 1MB. Is it slow because it is running in the Emulator? If not, what can you suggest to speed things up? Basically, the XML File (Data) is stored in the server and the Mobile App needs to get the data from the server and process it. Thanks! :-D

    It is said that the most complex structures built by mankind are software systems. This is not generally appreciated because most people cannot see them. Maybe that's a good thing because if we saw them as buildings, we'd deem many of them unsafe.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups