|
|
|
date: Tue, 1 Jul 2008 05:34:24 -0700 (PDT),
group: microsoft.public.windows.developer.winfx.indigo
back
WCF using ASP.NET
Dear All,
I managed to create my first WCF application, which is the
HelloWorld. Basically I created the HelloService.cs,
IHelloService.cs, and HelloService.svc, and everything works fine.
However I have an application I am trying to convert from the normal
asmx webservice to WCF.
My idea is to have multiple classes and interfaces in a layer, called
the ServiceLayer, and then 1 svc in another application, calling these
Interfaces, and hosted on IIS.
First of all is it possible to do. And if it is, how can I achieve
that? Does anyone has any examples to show.
Thanks for your help and time
Johann
date: Tue, 1 Jul 2008 05:34:24 -0700 (PDT)
author: monfu
Re: WCF using ASP.NET
Hi
You are perfectly capable of separating your components into a hosting assembly and a service implementation assembly.
The only requirements posed by IIS is that your (ASP.NET) WCF host is able to discover the classes mentioned in your .svc file. This file (.svc) mentions a ServiceHostFactory class that is responsible of constructing the services upon activation from a client call.
So - just make sure that the class mentioned by FQN (Fully Qualified Name) in your .svc file is discoverable from ASP.NET (i.e. they are present in your bin-folder.
/Claus Konrad
"monfu" wrote in message news:77a91743-5fed-4ef7-b3a6-6c02f9ef997b@i18g2000prn.googlegroups.com...> Dear All,
>
>
>
> I managed to create my first WCF application, which is the
> HelloWorld. Basically I created the HelloService.cs,
> IHelloService.cs, and HelloService.svc, and everything works fine.
>
>
>
> However I have an application I am trying to convert from the normal
> asmx webservice to WCF.
>
> My idea is to have multiple classes and interfaces in a layer, called
> the ServiceLayer, and then 1 svc in another application, calling these
> Interfaces, and hosted on IIS.
>
>
>
> First of all is it possible to do. And if it is, how can I achieve
> that? Does anyone has any examples to show.
>
>
>
> Thanks for your help and time
>
>
>
> Johann
>
date: Wed, 3 Sep 2008 14:39:58 +0200
author: Claus Konrad
|
|