Share via


Flow of Control

Applies to: SharePoint Server 2010

To understand how Microsoft Business Connectivity Services (BCS) clients, such as Business Data Web Parts and custom solutions, use BDC to execute external system’s Web or WCF methods, consider the following scenario. Let’s say you want a Business Data Web Part to display information from a CRM application by invoking Web services. To do that, the Web Part must have information about the methods it will invoke and the parameters the Web methods will accept. To get that information, the Web Part uses the BDC runtime object model to query the BDC metadata store where BDC stores the information about the Web methods. The Web Part again uses the runtime object model to invoke the Web methods and display the data on the page.

The following figure shows the high-level flow of control that occurs when a method is executed in BDC.

Flow of control when executing a method

Flow of control when executing a method