If you don't own the code for the web service you want to inherit from, then create a proxy class from the web service WSDL
* Open visual studio command prompt
*
WSDL[
^] /out:C:\myProxyClass.cs http://localhost/example1/a.asmx?WSDL
That will generate a proxy class with all the web service methods that are in the service a.asmx
Include the file generated at C:\myProxyClass.cs in the project where you want to override it.
Now inherit a class as stated by Jim
public class MyDerivedClass : ProxyClass
{
}
For methods that you want to override, you'll need to go into the source code of the proxy class and mark the methods as
virtual