Last post Jan 06, 2015 12:05 PM by Brutus Maximus
Dec 19, 2014 10:17 AM|Nila123|LINK
I have a web application and which has one http handlers which will be fired from a remote machine.
Whenever the handler fired , i need to execute some logic
My handler will be,
The services i need to execute is,
1. Call a method in the wcf service1 (value1 is required to process)
2. Then Call a method in the wcf service2 (value2 is required to process)
3. Then Call a method in the wcf service3 (value3 is required to process)
My Doubt is,
Which is the better approach from the below?
Extract the values from url and call each wcf services in the http handler itself
Extract the values from url and pass it to another wcf service , then call each wcf service from that new service say service4
Thanks in Advance
Jan 06, 2015 12:05 PM|Brutus Maximus|LINK
It is difficult to make out what you are trying to achieve from your description, but I can make the following suggestions:
Are your value1, value2 and value3 related? If so, why don't you consider passing a single object containing them as properties to the WCF service? This will make your call a chunky one, whereas passing the values in separate calls makes it a chatty interface,
which is not a good practice.
You also mention WCF services 1, 2 and 3. Do you really need 3 services? In a majority of applications, a single WCF service acting as a facade to the business logic is sufficient. Please provide more accurate and detailed descriptions of the problem you
are trying to solve, and maybe we can provide suggestions to help you solve your problem better.
Hope that helps,