Code Sample: AdventureWorks2008 WCF Service

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

  1. Download the Microsoft SharePoint 2010 Software Development Kit (SDK) from SharePoint 2010 Reference: Software Development Kit.

  2. Extract bcs sample from the path %ProgramFiles%\Microsoft SDKs\SharePoint 2010\Samples\Business Connectivity Services to a local folder.

  3. In the folder where you extracted the files, locate the AdventureWorks2008 WCF Service folder and open the Readme.htm file.

  4. Follow the instructions in Readme.htm to use the sample.