Re: abstract class overriding?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: drb (drb_at_discussions.microsoft.com)
Date: 03/25/05


Date: Fri, 25 Mar 2005 04:47:03 -0800

Hi Manohar,

Thanks for your reply. Yes, I did use the "/server" switch because I
thought that's what I was supposed to do to generate the server stubs. When
I saw that the tool generated an abstract class and methods, and saw the
comments in the file warning not to modify the file, it seemed to make sense.
 I would override the class/methods in a separate file in the VS.NET project,
and then "somehow" .NET would hook my method overrides into the service at
runtime. When it built successfully I thought I was on the right path.

So there's really no way to use/override the abstract class generated for
the server side when using the "/server" switch? I can't believe the tool
would produce something unusable. Is the abstract class just supposed to be
some sort of "guide"? This problem seems so basic that I thought surely
someone must have hit this problem (and hopefully solved it) before.

Anyway, thanks again - I do appreciate the help so far.

Dave

"Manohar Kamath" wrote:

> I guess you are using the /server option when you are creating your proxy
> class. It will create an abstract class. If you exclude it, you will get a
> concrete class.
>
> wsdl http://myhost/mywebservice.asmx?wsdl
>
>
> --
> Manohar Kamath
> Editor, .netWire
> www.dotnetwire.com



Relevant Pages

  • Re: Using OO to extend product written in C++ but no Uml diagrams exist
    ... Existing Code" and "Design Patterns". ... that do the same thing to different object types, ... 'switch' that make a decision based on the same information, ... an abstract class that dispatches to the correct code without the 'if' ...
    (comp.object)
  • Re: switch
    ... Arne Vajhøj wrote: ... public Style GetStyle{ ... Can't I use a switch to check a type. ... an abstract class that has a method that does whatever ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: abstract class overriding?
    ... Manohar Kamath ... > I saw that the tool generated an abstract class and methods, ... >> Editor, .netWire ...
    (microsoft.public.dotnet.framework.webservices)