Welcome to MSDN Blogs Sign in | Join | Help

Sample SQL Adapter built using WCF LOB Adapter SDK

WCF LOB Adapter SDK 'RC' ships with two sample adapters  -

  1. Contoso Adapter - uses a canned back-end defined using SQL Server 2005.
  2. Echo Adapter - a simple adapter that shows how to use WCF LOB Adapter SDK API and includes a usage pattern for inbound scenarios

Both of these adapters are limiting and don't truly capture building adapter for a real world line-of-business system. 

The team has recently finished creating a 'lite' SQL Server Adapter, that browses, searches and executes stored procedures in SQL Server 2005 database.  Each line-of-business system is unique and an adapter writer needs to have knowledge of the back-end system to create the adapter.  If you are a SQL Server guru and would expect some other functionality in a WCF-based adapter, feel free to extend this adapter. 

Click here to download this sample.  You can try this adapter out with AdventureWorks Sample Database.  

Following table shows the matrix of ASDK features used by this sample adapter.

Category

Feature

Yes/No

Metadata Definition

Implement IMetadataBrowseHandler.Browse

Yes

Implement IMetadataSearchHandler.Search

Yes

Implement IMetadataResolverHandler

Yes

Use ParameterizedOperationMetadata

Yes

Use StructuredTypeMetadata

Yes

Use one or more of the following special types

·         DurationTypeMetadata

·         EnumTypeMetadata

·         CharTypeMetadata

·         GuidTypeMetadata

·         StreamTypeMetadata

Yes

Override any one of following method to provide pre-defined XML Schema

·         OperationMetadata.ExportInputXmlSchema

·         OperationMetadata.ExportOutputXmlSchema

·         TypeMetadata.ExportXmlSchema

No

Implement IWsdlRetrieval.GetWsdl

No

Message Exchange

Implement IOutboundHandler

Yes

Implement IAsyncOutboundHandler

No

Implement IInboundHandler

No

Implement IAsyncInboundHandler

No

Use AdapterDataReader / AdapterDataWriter derived classes for parsing/building WCF messages

Yes

Connection

Line-of-business system requires security credentials.  Use one of the following ways to get credentials from client –

·         UserName

·         Windows

·         Certificate

Yes

Use line-of-business connection pooling

No

Binding Properties

Surface adapter settings as binding properties

Yes

 

 

Published Wednesday, July 11, 2007 3:10 PM by sonua
Attachment(s): SQLSampleAdapter.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Sample SQL Adapter built using WCF LOB Adapter SDK

Hi, thankz for the sample. Just wanted to know if going forward we can expect a fully implemented (and perhaps supported) SQL Server or even better ADO.NET based adapter from your team or we are on our own on that?

And, just as a side note, reconsider the "WCF LOB Adapter SDK" moniker - it sounds very boringly microsoft'ish.

Keep up the good work.

Friday, July 13, 2007 6:49 PM by Rishi

# Declarative XML Parsing - Adapter Data Readers/Writers

Are you using adapter data reader / writer derived classes? WCF LOB Adapter SDK team had introduced adapter

Wednesday, July 18, 2007 4:39 AM by Developing adapters using WCF

# re: Sample SQL Adapter built using WCF LOB Adapter SDK

This sample SQL Sample Adapter does not work with the RTM version of teh SDK. Will you provide an updated sample which wokrs with RTM version of SDK? I really would like to know as I am wokring on a POC for my client and SQL Adapter sample will make the development time really short and make the over solution very clean. Any feedback will be appreciated.

Monday, August 13, 2007 10:27 PM by Naveed Zaheer

# re: Sample SQL Adapter built using WCF LOB Adapter SDK

The sample provided is not compiling. Do you have an updated solution for the sample attached?

Thursday, July 23, 2009 7:32 AM by Biju

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker