473,587 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

convert a Class Library to web service

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
3 3545
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*****@discuss ions.microsoft. com> wrote in message
news:73******** *************** ***********@mic rosoft.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
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*****@discuss ions.microsoft. com> wrote in message
news:73******** *************** ***********@mic rosoft.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
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="SingleCal l" objectUri="DASe fer.soap"
type="MyNameSpa ce.MyClass,Asse mblyName"/>
</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.microso ft.com/clr/nsassem/SeferDAccess/SeferDAccess%2C %20Version%3D1. 0.1934.18680%2C %20Culture%3Dne utral%2C%20Publ icKeyToken%3Dnu ll'.
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1986
by: Ron | last post by:
Hello, I need to create/instantiate a global class library project so that 2 EXE's can write to the same class library form in the same instance of the class libary. I am thinking something along the lines of declaring the class library project in a global assembly and then referencing this global declaration from each of the 2 EXE's. ...
3
6313
by: Miguel Ferreira via .NET 247 | last post by:
Hi ! I have developed a class Library with several classes and methods. Its working fine with a windows forms test application, but now i need to create a webservice that will expose those methods. Do i have to create a method signature replica to all interfaces and methods, that will consume the internal class library, like this: ...
0
1294
by: russell.lane | last post by:
I have a web service that exposes database contents as disconnected datasets. I would to use that web service from within a class library. I have included a web reference to the service in my class library project. If I bring up the reference in the object browser, I see the web service namespace nested within the class library namespace,...
2
1380
by: Maxwell2006 | last post by:
Hi, As far as I know, a class library project cannot have any app.config dedicated to itself and it always depends on the main application to provide the .config settings. Based on above, I am confused when I see that VS2005 adds an app.config file upon I add a web service to my dll class library and stores the URL address to the asmx...
2
1713
by: Steve | last post by:
I want to call my web service from a class library and have that library handle all the wse stuff, so that applications using that library don't have to worry about it. Is that possible? I've tried by creating and applying the correct policy to a class library that I created. The application project doesn't have any wse settings (no...
7
10314
by: Peter Bradley | last post by:
OK. A bit behind the times, I know; but we're just moving over to .NET 2.0. How on earth do you manage configuration settings in a class library in .NET 2.0? In version 1.1, we used a handy class called AssemblySettings that someone (I forget his name) had written. When the class library was finished, you deployed it to the GAC and put the...
4
2045
by: OiNutter | last post by:
Hi I have a web service with a reference to a class library with 2 classes; User: The base class Client: Inherits from User There are also some functions which return an object of type client. When I test the web service in a browser it all works fine but when I try and add the web service as a web reference called MercuryWeb to a...
4
7360
by: AliR \(VC++ MVP\) | last post by:
Hi everyone, I'm writing a silverlight 2.0 application that uses a web service. The web service is a WCF web service and it uses a class library that I have written. When I add a method to the webservice that uses/returns an object that was defined in the class library all hell breaks loose. What happens is that my service object no longer...
4
4532
by: stroudg2 | last post by:
Situation: I have been tasked to provide a non-intrusive solution to allow .NET web services to grab an incoming SOAP header and process the credentials stored within in such a way that a credential object is returned to the web method so they can access the appropriate role information to add to database query. In order to accomplish this,...
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.