R – Issues with client consuming a .net web service upgraded from .NET 1.1 to 3.5

netweb services

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.

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: Server did not recognize the value of HTTP Header SOAPAction: (web service URI)

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

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

Best Answer

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?

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

Do they match?