Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2007

Tip: Looking for answers? Try searching our database.

Expose .net dll as web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
inga2005 - 19 Oct 2007 11:48 GMT
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
Scott M. - 19 Oct 2007 14:01 GMT
AFAIK each method must be marked as a web method and the class itself must
be marked as a 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
Spam Catcher - 19 Oct 2007 21:31 GMT
inga2005 <erik@liffner.se> wrote 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?
Andrew Faust - 30 Oct 2007 02:14 GMT
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.

Signature

Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.