У меня есть определенный метод (фрагмент ниже), для которого я хочу получить XML-результат:
Сервер
[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
}
Клиент
using (HttpResponseMessage response = m_RestHttpClient.Get("getcustomerschema/userCode=admin/password=admin"))
{
//how can I get the xml resuly from the httpResponseMessage?
}
Спасибо