与客户端的问题耗费了.NET Web服务升级,从.NET 1.1〜3.5客户端、问题、NET、Web

2023-09-04 06:52:20 作者:孤海未蓝

我的工作,这是最近从Visual Studio 2003转换为Visual Studio 2008的Web应用程序的应用程序包含了一些曾经使用.NET 1.1框架和Web服务增强2.0编写的Web服务。他们被转换为使用VS 2008转换向导工具的.NET 3.5框架。

I am working on a web application that was recently converted from Visual Studio 2003 to Visual Studio 2008. The application contained some web services that were written using the .NET 1.1 Framework and Web Service Enhancements 2.0. They were converted to the .NET 3.5 framework using the VS 2008 Conversion Wizard Tool.

这是使用.NET 1.1框架的引用,更新的Web服务仍写入并尝试使用Web服务并收到以下错误客户端应用程序:

A client application which is still written using the .NET 1.1 framework has a reference to the updated web service and try to consume the web service and received the following error:

System.Web.Services.Protocols.SoapException:服务器不承认HTTP头SOAPAction的值:(web服务URI)

System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: (web service URI)

URL行为设置为静态的参考和代理类继承自System.Web.Services.Protocols.SoapHttpClientProtocol命名空间更改为Microsoft.Web.Services2.WebServicesExtension命名空间

The URL Behavior is set to static for the reference and the proxy class inheritance was changed from System.Web.Services.Protocols.SoapHttpClientProtocol namespace to Microsoft.Web.Services2.WebServicesExtension namespace

如果您需要更多信息或者需要看到一些源$ C ​​$ C,请让我知道。

If you need additional information or need to see some source code, please let me know.

推荐答案

如果你直接去ASMX的URL与Web浏览器,然后单击要呼叫他们想要的方式,有什么SOAPAction的?

If you go directly to the asmx url with a web browser, and then click on the method you want to call, what's the SOAPAction that they want?

接下来,检查Reference.vb code,看看SoapDocumentMethodAttribute属性设置为。

next, check the Reference.vb code and see what the SoapDocumentMethodAttribute attribute is set to.

他们是否匹配?