WCF - using multiple bindings including REST (WebHttpBinding) on one service library? -
I have my service layer (which is currently written as POCOs in standard class library) with external I want to expose myself for internal consumption. The external client will use it on the REST style API, while internally my MVC app will use it from net.tcp binding for better performance.
How do I do this beautifully? I can write 2 rapper for REST using VS2010 beta 2 comfort facilities and other standard WCF binding.
Can I do it in a cover? Or better just re-implement my existing services as WCF and expose various endpoints using various bindings such as WebHttpbidding, WSHTP binding etc.
Regards,
Ajay
Only in your service library The implementation of the service will be involved - your service (and data) contract should be in your own separate "contracts" assembly.
Using Hosting Question and Which Protocol Your Service is handled by Host - This can be IIS or a separate NT service or a console app or something Your service class and your service library are completely free.
So yes - you can easily create a service library and then show that service at many points in your service, the host - those two things should be kept completely separate from each other.
Comments
Post a Comment