I have a number of WCF Services which are called for a certain function from an ASP.NET MVC application.
- The MVC app calls Contract-Service (WCF Service)
- Contract-Service during its processing calls Contract-Buy-Service (WCF Service)
- Contract-Buy-Service calls SAM-Utility-Service (WCF Service)
When I run my TDD test cases from Contract-Buy-Service, it works perfectly fine. Because the call goes from Contract-Buy-Service to SAM-Utility-Service. But when the call goes from Contract-Service => Contract-Buy-Service => SAM-Utility-Service I always get the error that the endpoint for SAM-Utility-Service is not found in the config.
There is a service reference for SAM-Utility-Service in both the contract-buy-service and contract-service. I have checked that the service is hosted and is up and running. I can get the WSDL when I try to view through browser.
Can someone tell me why the service call does not go through multiple layers or am I doing something wrong here?
Thanks!