Tag Archives: web.config

How To Consume WCF in a Web Part Without Touching The Web.config File January 10th, 2011Posted: JonComments: 3

On a recent project, your humble narrator recently found himself needing to harvest some data from a WCF service for display in that most common of SharePoint development scenarios, the custom Web Part. It quickly dawned upon my tiny intellect, however, that in a Web Part project, there is no config file in which to define the bindings and endpoints required by a Service Reference. What, then, was an enterprising young Web Part developer cum WCF consumer to do?