返回XMLDocument类型,默认会解析为json格式。返回字符串会默认加双引号。
解决方法:返回HttpResponseMessage类型,自定义返回值类型。
HttpResponseMessage responseMessage = new HttpResponseMessage { Content = new StringContent(result, Encoding.GetEncoding("UTF-8"), "text/plain") };