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