By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,909 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,909 IT Pros & Developers. It's quick & easy.

convert a Class Library to web service

P: n/a
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
Nov 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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();
}
}

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"convert a Class Library to web service" <convert a Class Library to web
se*****@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.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

Nov 23 '05 #2

P: n/a
May be i might have misunderstood but, Seems the MyWebClass is deriving from
multiple classes , which will not compile.

"Manohar Kamath" wrote:
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();
}
}

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"convert a Class Library to web service" <convert a Class Library to web
se*****@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.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


Nov 23 '05 #3

P: n/a
gil
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%20Cu lture%3Dneutral%2C%20PublicKeyToken%3Dnull'.
Unable to import operation 'KoreDetails'. The datatype 'DataSet' is missing.

are any one know what i do rong???


"convert a Class Library to web service" wrote:
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

Nov 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.