Web Service, XML Serialization, HTTP Download
-
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.