首页 > 解决方案 > “请求失败,响应为空。” 从 VM 移动到 Azure 应用服务后,某些系统中的 SOAP 请求错误。

问题描述

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

Azure 日志堆栈跟踪

在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) 在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 在 ... ......

系统操作系统:Microsoft Windows NT

应用程序:Outlook 插件 (WPF)

标签: wpfazureweb-servicessoap

解决方案


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

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

在此处输入图像描述

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


推荐阅读