.Net Core BadGateway在回复后的大量数据时出错

时间:2017-08-18 13:13:10

标签: c# soap async-await .net-core httpclient

我正在尝试向web服务执行soaprequest,它运行的数据很少,但在trynig获取大量数据时会出现badGateway错误,

这是我的代码

var content = new StringContent(soapEnvelopRequest, Encoding.UTF8, "text/xml");
using (var response = await client.PostAsync(action, content))
{
  var soapResponse = await response.Content.ReadAsStringAsync();
  return soapResponse;
}

0 个答案:

没有答案