I'm trying to connect to an ASMX web service and the code generated in a Windows Phone Project is different than in Windows Forms. In Windows Forms, the methods of this web service returns a DataSet, so I go through all rows in the existing tables of this object:
MyObject myObject = new MyObject();
DataSet dataSet = soapClient.SomeMethod();
foreach (DataTable table in dataSet.Tables)
{
foreach (DataRow row in table.Rows)
{
myObject.SomeProperty = row["SomeProperty"];
myObject.SomeOtherProperty = row["SomeOtherProperty"];
}
}
But in Windows Phone it generates an async version of this method which I subscribe to an event that fires when the request is completed. And the event args brings me a ArrayOfXElement, which seems to be a Windows Phone version of the DataSet object. So how do I parse this?
Before you mark this question as duplicated, know that the other answers available in this site is not working.