Derive a class from the classes, and override the methods, and attribute
them as WebMethod.
Something like:
public class MyWebClass: WebService, MyBaseClass
{
[WebMethod]
public override int MyMethod()
{
return base.MyMethod();
}
}

Signature
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
> can i convert a Class Library to be share in the internet as a web service
> i what thet all my classes in the Class Library will be shared
Prasad - 30 Mar 2005 11:59 GMT
May be i might have misunderstood but, Seems the MyWebClass is deriving from
multiple classes , which will not compile.
> Derive a class from the classes, and override the methods, and attribute
> them as WebMethod.
[quoted text clipped - 13 lines]
> > can i convert a Class Library to be share in the internet as a web service
> > i what thet all my classes in the Class Library will be shared
i do that by putting the class library in a virtual sub directory bin
and define in the web.config
<system.runtime.remoting>
<application>
<service>
<wellknown
mode="SingleCall" objectUri="DASefer.soap"
type="MyNameSpace.MyClass,AssemblyName"/>
</service>
<channels>
<channel ref="http"/>
</channels>
</application>
</system.runtime.remoting>
but i have a problem in classes that return a dataSet
when i try to add the web refernce to that class i have the error:
error: Unable to import WebService/Schema. Unable to import binding
'DAKoreBinding' from namespace
'http://schemas.microsoft.com/clr/nsassem/SeferDAccess/SeferDAccess%2C%20Version%
3D1.0.1934.18680%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'.
Unable to import operation 'KoreDetails'. The datatype 'DataSet' is missing.
are any one know what i do rong???
> can i convert a Class Library to be share in the internet as a web service
> i what thet all my classes in the Class Library will be shared