473,807 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Expose .net dll as web service

Hi! Is there a way to expose all the methods in a .net dll written i
C# as a web service without having to do it method by method but just
as a transparent layer?
/erik

Oct 19 '07 #1
3 3210
AFAIK each method must be marked as a web method and the class itself must
be marked as a web service.
"inga2005" <er**@liffner.s ewrote in message
news:11******** **************@ t8g2000prg.goog legroups.com...
Hi! Is there a way to expose all the methods in a .net dll written i
C# as a web service without having to do it method by method but just
as a transparent layer?
/erik

Oct 19 '07 #2
inga2005 <er**@liffner.s ewrote in news:1192790935 .774135.240110
@t8g2000prg.goo glegroups.com:
Hi! Is there a way to expose all the methods in a .net dll written i
C# as a web service without having to do it method by method but just
as a transparent layer?
Not easily ...

You could host the DLL as a .NET remoting service? In which case it would
mostly be configuration rather than coding?
Oct 19 '07 #3
To add to what the others said. If you've got the source code you could
always use a text editor like UltraEdit to manually add the [WebMethod]
attribute all at once. It will at least save you the need to do it
manually.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com
"inga2005" <er**@liffner.s ewrote in message
news:11******** **************@ t8g2000prg.goog legroups.com...
Hi! Is there a way to expose all the methods in a .net dll written i
C# as a web service without having to do it method by method but just
as a transparent layer?
/erik
Oct 30 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1549
by: David | last post by:
Hello. Can anybody show me how can I expose method from my Windows Service application?
1
2428
by: Hank | last post by:
I am writing a windows service in C#.NET which will manage image capturing devices, when client connects to the service, at some point the service need to expose a device dialog to the client for setting some device specific parameters. According to MSDN docs, classes within the Windows Forms namespace are not supported for use within a Windows service. So How can I do that? Thanks! HELP: expose Windows dialog from Windows Service
1
1570
by: C | last post by:
Hi, I have a class withing my ASP.Net project which I want other applications to use so I am going to create a separate Assembly for this. In addition to this I want to know if it is possible to expose this Assembly as a web service that other companies can use?
6
4914
by: cipher | last post by:
I have some constant values in my web service that my client application will require. Having to keep server side and client side definitions insync is tedious. I am trying to do something like this: public __value enum Colors { Red = 1, Green = 2, Blue = 4, Yellow = 8 }; However, the resulting wsdl omits the actual flag values: - <s:simpleType name="Colors">
3
6330
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: <WebMethod()> _ Public Function Method1() As TypeDefinedInClassLibrary 'Call Method1 in class library...
1
1596
by: MisterT | last post by:
Hello, I have a web service that updates an SQL database thru a web service. I would like to expose the database table so I can easily add it as a Data Source in VS 2005 to program the web service client. Any ideas how to do this? Thank you, Tom
0
1235
by: kostadin | last post by:
I want to expose the whole functionality of a library through a web service. In order to do that of course I've created web methods for all public methods in this library. Because only public data and no logic or private fields is transferred through web services, I need to know what is the correct pattern for invoking the methods of the proper objects. By now I've found two possible patterns: 1) Objects are created on the server and then...
0
1880
by: doron.grinstein | last post by:
A lot of architects tackle the issue of exposing internal web services and web applications to the Internet. How many times do you see a requirement such as "the application should be accessible to users behind the firewall (on the intranet) but also to users on the Internet"? Traditionally, architects had two choices - beg the network engineers and managers to "poke holes" in the firewall (unlikely), buy an expensive specialized...
5
9684
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi, I have a webservice which uses a c# Dll,This Dll is a C# class library which contain few class . I am able to see the class when in the Web service but when i create a stubb class of the webservice using wsdl.exe then these classes are not exposed.Both the class are public. I tried for a while and found that if I use these class(one and two) as the parameter in the WebMethods the web service and generate the Stubb class then these...
0
9721
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10628
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10113
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5547
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.