473,394 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 3193
AFAIK each method must be marked as a web method and the class itself must
be marked as a web service.
"inga2005" <er**@liffner.sewrote in message
news:11**********************@t8g2000prg.googlegro ups.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.sewrote in news:1192790935.774135.240110
@t8g2000prg.googlegroups.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.sewrote in message
news:11**********************@t8g2000prg.googlegro ups.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
by: David | last post by:
Hello. Can anybody show me how can I expose method from my Windows Service application?
1
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...
1
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...
6
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...
3
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...
1
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...
0
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...
0
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...
5
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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...
0
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...

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.