How to Register a WCF Service

Topics: Web Client Software Factory, User Forum
Jan 5, 2009 at 2:34 AM
Can anyone tell me how can i register a WCF service  as Global Service.  I need to access a set of services through WCF  Please suggest me a better way for this.

Jan 5, 2009 at 3:51 PM
Wrap the WCF clients as your global services and register them.

Chester
Jan 5, 2009 at 4:17 PM
I tried that i created a Foundation Module and Add the Reference to the WCF ,when i tried call it from the controller i get error related to no configuration file. what i feel is that application expects configuration file as part of the web project.

Not sure whether i am following the correct procedures..
Jan 5, 2009 at 6:20 PM
WCF client's configuration section needs to be copied to web.config of your web site.

Chester
Jan 5, 2009 at 6:31 PM
Thanks... I did the same..it was working after that.. but is there any better approach we can follow
Jan 5, 2009 at 7:26 PM
Edited Jan 5, 2009 at 7:27 PM
Because a WCF service is kind of external, I usually abstract it as an interface and in my code I only depend on this interface. This makes my unit tests and auto-build much easier as in unit tests I would mock the interface instead of accessing the real WCF service which I usually have no control of it.

Chester