How to get the raw xml from a webservice request or response
XmlSerializer xmlSerializer = new XmlSerializer(oResponse.GetType());
using (StringWriter textWriter = new StringWriter())
{
xmlSerializer.Serialize(textWriter, oResponse);
var xmlText = textWriter.ToString();
}
0 comments:
Post a Comment