【问题标题】:"The request failed with an empty response." SOAP request error in some system after moving to azure app service from VM.“请求失败,响应为空。”从 VM 移动到 Azure 应用服务后,某些系统中的 SOAP 请求错误。
【发布时间】:2019-01-16 12:26:00
【问题描述】:

“请求失败,响应为空。”从 Azure VM 移动到 azure 应用服务后,SOME SYSTEM 中的 Web 服务 SOAP 请求错误。

Azure 日志堆栈跟踪

在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage 消息,WebResponse 响应,流 responseStream,布尔 asyncCall) 在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(字符串方法名,对象 [] 参数) 在......

系统操作系统:Microsoft Windows NT

应用程序:Outlook 插件 (WPF)

【问题讨论】:

  • 有更新吗?我正在检查这个问题的进展情况。
  • 没有更新。 6 天后,我们遇到了同样的问题。

标签: wpf azure web-services soap


【解决方案1】:

在我们将 Web 服务从 VM 移动到 Azure 应用服务后,我们需要将端点地址修改为 Web.config 中的正确 URL。

我们可以找到如下Web服务端点地址:

请检查此端点地址是否正确。它可能看起来像:https://WebAppname.azurewebsites.net/yourWebService.asmx

【讨论】:

  • 我们将服务添加为Web引用,所以您的意思是说我们应该在更改为应用服务时将服务添加为服务引用。还有为什么它在某些系统中工作?。
猜你喜欢
  • 1970-01-01
  • 2012-01-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-12-29
  • 1970-01-01
  • 1970-01-01
  • 2011-11-02
相关资源
最近更新 更多