call WCF from WCF

Mar 17 2015 6:16 AM
I have two WCF service(WCF1 and WCF2). WCF2 generates does some function. WCF1 has to call WCF2 on basis of some condition. I added the WCF2 service reference in WCF1.
Created object for the WCF2 and called the method,

WCF2.WCF2Client etObj = new WCF2Client();
etObj.EmployeeInterfaced();


On build i get the error WCF2

The type name 'WCF2' does not exist in the type 'WCF1.IWCF1'

Answers (3)