简体   繁体   English

通过Visual Studio发布后,ASMX服务中的Soap Exception

[英]Soap Exception in ASMX service after publishing via Visual Studio

I've got a strange problem regarding ASP.NET ASMX webservices. 关于ASP.NET ASMX Web服务,我遇到了一个奇怪的问题。 I have a webservice providing some method "GetLicencedApplications". 我有一个提供某些方法“ GetLicencedApplications”的Web服务。 The service is already used by a client application and worked fine. 该服务已被客户端应用程序使用,并且运行良好。 The service code has not been changed for a while. 服务代码一段时间未更改。 Some days ago, I used the visual studio "Publish..." functionality to deploy a copy of the webservice to a test server. 几天前,我使用视觉工作室的“发布...”功能将Web服务的副本部署到测试服务器。

Since that moment, the service doesn't work on my developer machine anymore. 从那时起,该服务不再在我的开发人员计算机上运行。 When I'm connection with my client application to the localhost test URL of the webservice, I always get the following exception: 当我将我的客户端应用程序连接到Web服务的localhost测试URL时,总是收到以下异常:

System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://soa.oursite.com/ourApp/licencing/GetLicencedApplications . System.Web.Services.Protocols.SoapException:System.Web.Services.Protocols.SoapException:服务器无法识别HTTP标头SOAPAction的值: http : //soa.oursite.com/ourApp/licencing/GetLicencedApplications at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() (...) 在System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()(...)

Has anyone experienced similar problems? 有没有人遇到过类似的问题? I've already tried to update the web service reference within my client application, but this did not help. 我已经尝试在客户端应用程序中更新Web服务引用,但这无济于事。

Have you checked to see if the Namespace for your web service has changed? 您是否检查过Web服务的命名空间是否已更改? The value is a case-sensitive string and given your exception, I would expect the value to be: [WebService(Namespace = "http://soa.oursite.com/ourApp/licencing/")] 该值是区分大小写的字符串,考虑到您的异常,我希望该值是:[WebService(Namespace =“ http://soa.oursite.com/ourApp/licencing/”)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在没有Visual Studio的情况下调用ASMX Web服务 - Invoke ASMX Web Service without Visual Studio 在Visual Studio 2013上发布Windows服务 - Publishing windows service on Visual studio 2013 使用visual studio 2013在C#中创建asmx Web服务 - Create a asmx web service in C# using visual studio 2013 ASMX Web服务:如何从我想从客户端捕获的asmx服务中抛出肥皂异常 - ASMX Web Service: How to throw soap exception from asmx service which i like to capture from client side 使用FTP在Visual Studio中发布 - Publishing in Visual Studio with FTP 在没有服务参考的情况下在Visual Studio 2012中调用SOAP服务 - Calling SOAP Service in Visual Studio 2012 without Service Reference 将SOAP标头添加到ASMX服务请求 - Adding SOAP headers to ASMX service requests Visual Studio 2017发布后添加不需要的dll - Visual Studio 2017 adding unwanted dll's after publishing 在Visual Studio 2012中发布Web应用程序后,文件夹丢失 - Folders are missing after publishing web-application in visual Studio 2012 天蓝色的聊天机器人无法正常工作。 从Visual Studio发布之后(2017年) - azure chatbot not working. after publishing from visual studio(2017)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM