Code Sample: AdventureWorks2008 WCF Service
Last modified: July 16, 2010
Applies to: SharePoint Server 2010
The AdventureWorks2008 WCF Service sample shows how to use a Windows Communication Foundation (WCF) service as an external system.
The Web service exposes methods for Create, Read, Update, and Delete (CRUD) operations on the SalesCustomer, SalesOrderHeader, and SalesOrderHeaderDetails entities and other operations that return data based on the relationships among these entities.
To create a Business Data Connectivity (BDC) service model file for this sample, see How to: Create an External Content Type Based on a WCF Endpoint.
Internet Information Services (IIS)
Microsoft .NET Framework 3.5 Service Pack 1
Microsoft SharePoint Server 2010
Microsoft SQL Server 2008 (and Microsoft SQL Management Studio)
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 path %ProgramFiles%\Microsoft SDKs\SharePoint 2010\Samples\Business Connectivity Services to a local folder.
In the folder where you extracted the files, locate the AdventureWorks2008 WCF Service folder and open the Readme.htm file.
Follow the instructions in Readme.htm to use the sample.