【问题标题】:Soap Exception in ASMX service after publishing via Visual Studio通过 Visual Studio 发布后 ASMX 服务中的 Soap 异常
【发布时间】:2012-02-04 04:54:29
【问题描述】:

我遇到了一个关于 ASP.NET ASMX Web 服务的奇怪问题。我有一个提供一些方法“GetLicencedApplications”的网络服务。该服务已被客户端应用程序使用并且运行良好。服务代码有一段时间没有更改。几天前,我使用 Visual Studio 的“发布...”功能将 Web 服务的副本部署到测试服务器。

从那一刻起,该服务不再在我的开发人员机器上运行。当我将客户端应用程序连接到 web 服务的 localhost 测试 URL 时,我总是收到以下异常:

System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException:服务器无法识别 HTTP Header SOAPAction 的值: http://soa.oursite.com/ourApp/licencing/GetLicencedApplications。在 System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() (...)

有没有人遇到过类似的问题?我已经尝试在我的客户端应用程序中更新 Web 服务引用,但这没有帮助。

【问题讨论】:

标签: c# .net web-services asmx


【解决方案1】:

您是否检查过您的网络服务的命名空间是否已更改? 该值是区分大小写的字符串,鉴于您的例外情况,我希望该值为: [WebService(Namespace = "http://soa.oursite.com/ourApp/licencing/")]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-17
    • 2019-04-24
    • 1970-01-01
    相关资源
    最近更新 更多