Because this webservice is supposed to be consumed using an android device, based on what my friend had told me, he said the only way he have is to download a file and read from there.
This project is not going live, it is demonstrated on 1 computer. So the file can be saved in a C:\ folder, instead of a live server.
So right now I am trying to find a way to return a download file link, instead of the original XML format. The download link format I am looking for is .xml.
My web service is in this format:
I have Location.cs
public List<Locations> ws(string parameter)
{
List<Locations> abc = new List<Locations>();
// Over here I populate the abc list with objects.
return abc;
}
As far as ASp.NET and C# part is concered you can do something like this .
Whenever you have file data you should write it to file . And than just call this function passing path and file name you want to appear to other end .