dotnet web services:
Hi,
I'm hoping this is a stupid question, so I apologize in advance.
After creating WSDL files from scratch for a new web service, I used the
WSDL.exe tool to generate C# stubs for both the web service server methods
and the client proxy methods. The tool created the server methods as
abstract member methods of an abstract class that derived from
System.Web.Services.WebService. I *thought* what I needed to do was create
another class that derived from this class, so I did, and
implemented/overrode the methods in the derived class. And everything built
in VS.NET successfully.
I then created a test client console app using the client proxy methods, and
tried to call the web service. But the call failed with the error:
An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: Server was unable to process request. --> Cannot
create an abstract class.
From the error it looks like the web service was found OK, but something in
the web service (or the service itself?) couldn't be instantiated? If I run
the service in the VS.NET debugger I get an IE page displaying the service
methods/messages successfully, so I thought everything was being instantiated
properly. I tried explicitly adding all the various web service attributes
that the WSDL.exe tool placed on the abstract class definition/methods to the
derived class as well, but that didn't seem to work.
I *think* I'm missing something obvious, but don't know where to look, so I
came to the land of experts. If I can provide any more information let me