Call service from another service
i am trying to follow the Layered service Model http://2.bp.blogspot.com/_Ulehi1qz3j0/SDFTyiUkRGI/AAAAAAAAACc/J0UiCKTeKQk/s1600-h/Layered+Service+Model.gif , so Process service should call task service or entity service. now i just instantiate the other service from first one as class instantiation Service2 myOtherService = new Service2(). i know it is wrong, but should i add service reference in service project and call the other service through proxy as i do in web client?
thanks in Advance
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Aug 18, 2009, 8:20 PM EDT
i highly recommend you not to do so.
if you want dynamic coupeling between services, you need each service to be unaware of the other service existance.
i would recommend you to read a bit on ESB, the idea is that you basically create a router service that has a datacontract to all services, and all messages goes through him.
example, you have a service requesting data on "b and c" you send a request for them to the router, he will go to "b" and to "c"
and return their response
Ahmed Soliman6 reputationPosted Aug 19, 2009, 7:09 AM EDT