deserialize xml into class - debug my code, real quick project

deserialize xml into class - debug my code, real quick project

Closed - This job posting has been filled and work has been completed.

Job Description

Hi,
I am having an issue de-serializing my xml into a class. I am almost done, I just need someone to help out. This should be easy and only take a very short time, way less than an hour.

I will attach the xml. I can only upload one file so I can send the class later. Here is the function that I can't get to work:

public static OrderResponse GetOrderResponseFromXml(string xml)
{
OrderResponse responseObject = new OrderResponse();
try
{
var xSerializer = new XmlSerializer(typeof(OrderResponse), new XmlRootAttribute("order-wrapper"));
using (var reader = new StringReader(xml))
{
XmlSerializer serializer = new XmlSerializer(typeof(OrderResponse));
responseObject = (OrderResponse)serializer.Deserialize(reader); //this gives serializer the part of XML that is for the innerObject data
}
}
catch (Exception exception)
{
MessageBox.Show(exception.Message);
}
return responseObject;
}

Open Attachment