Code Sample: Sample Orders WCF Service
Applies to: SharePoint Server 2010
The Sample Orders WCF Service sample shows how to use a Windows Communication Foundation (WCF) service as an external system. The WCF service exposes methods for Create, Read, Update, and Delete (CRUD) operations and other methods that return data based on relationships between the different entities. This WCF service creates the data on-the-fly without storing it in or retrieving it from a database.
The Web methods in this sample map to the following Microsoft Business Connectivity Services (BCS) stereotype methods:
AccessChecker, AssociationNavigator, Associator, BulkAssociatedIdEnumerator, BulkAssociationNavigator, BulkIDEnumerator, BulkSpecificFinder, ChangedIDEnumerator, Creator, Deleter, Disassociator, Finder, GenericInvoker, IdEnumerator, Scalar, SpecificFinder, StreamAccessor, Updater.
To learn how to connect to this WCF service using Business Connectivity Services, follow the steps in Walkthrough: Creating Your Own BDC Model.
Internet Information Services (IIS)
Microsoft .NET Framework 3.5 Service Pack 1
Microsoft SharePoint Server 2010
Download and use the sample
Download the Microsoft SharePoint 2010 Software Development Kit (SDK) from SharePoint 2010 Reference: Software Development Kit.
Extract bcs sample kit.zip from the page %ProgramFiles%\Microsoft SDKs\SharePoint 2010\Samples\Business Connectivity Services to a local folder.
In the folder where you extracted the files, locate the Sample Orders WCF Service folder and open the Readme.htm file.
Follow the instructions in Readme.htm to use the sample.