I have this certain method(snippet below) for which I want to get the XML result of.
Server
[OperationContract]
[WebGet(UriTemplate = "getcustomerschema/userCode={userCode}/password={password}",
ResponseFormat= WebMessageFormat.Xml,
RequestFormat= WebMessageFormat.Xml,
BodyStyle= WebMessageBodyStyle.Wrapped)]
public DataSet GetCustomerSchema(string userCode, string password)
{
//method
}
Client
using (HttpResponseMessage response = m_RestHttpClient.Get("getcustomerschema/userCode=admin/password=admin"))
{
//how can I get the xml resuly from the httpResponseMessage?
}
Thanks