SharePoint 2010 Business Connectivity Services
-
Upload
lynn-langit -
Category
Technology
-
view
3.902 -
download
0
description
Transcript of SharePoint 2010 Business Connectivity Services
![Page 1: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/1.jpg)
Business Connectivity Services for SPS 2010
Lynn LangitMicrosoft – Developer EvangelistBlogs.msdn.com/SoCalDevGal
![Page 2: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/2.jpg)
SPS 2010 and BCS
NEW - Business Connectivity Services
Combine Internal (SharePoint) and External Data (LOB Systems)
Superset of BDC
Communities
Search
Sites
Composites
ContentInsights
![Page 3: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/3.jpg)
What is BCS?
Surfaces External data to Office 2010
Includes no code solutions
Includes Developer Extensibility
![Page 4: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/4.jpg)
What is Business Data Connectivity?
• Data from OUTSIDE of SharePoint• Data which can be DISPLAYED inside of SPS or Office
![Page 5: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/5.jpg)
What is the Architecture of BCS?
Search, Workflow, Web Parts, R/W connections
Offline (uses SQL Compact)
![Page 6: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/6.jpg)
BCS Features by SPS Edition
![Page 8: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/8.jpg)
Development ApproachesSP Server(Prod /
Dev)IT Admin
Import & ConfigureWSP/BDC
SI/IT Devs
“Live” connection
SharePoint Designer
Discover & Configure existing back-end integration end-points (no-code)
Connect to existing WCF, ADO.NET or .NET Objects
Author thin or rich client UX for External List or InfoPath Forms
Pro Dev
Produce WSP/ClickOnce Package w/BDC Model
WSP/ ClickOnc
e Package
Create custom back-end integration logic using .NET Assemblies
Author thin or rich client UX as SPS or VSTO projects
![Page 9: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/9.jpg)
Who Does What with BCS?
![Page 10: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/10.jpg)
What is a Custom Content Type?
A reusable schema (strongly typed) from SP DataUsually used as metadata for listsCreated in SharePoint, SP Designer or VS
![Page 11: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/11.jpg)
Editing Content Types in SP Designer
![Page 12: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/12.jpg)
Content Type Modeling in VS 2010
![Page 13: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/13.jpg)
Where can I display custom content?
Inside of SharePointUsually added to ListsOnline and connected
SharePoint WorkspaceUsually added to ListsCan be offline - *requires SharePoint Server
Office - *requires SharePoint ServerWord, Access, moreRequires custom code
![Page 14: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/14.jpg)
Viewing Custom Content Types in SPS
![Page 15: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/15.jpg)
What is an External Custom Content Type?
Custom Content Type sourced from OUTSIDE SPS
data access info (i.e. connection, security, data access permissions, type info) - ENTITIESIncludes information about data access from inside of SPS, Word, etc…- i.e. read or read/write) - BEHAVIORS
Usually used as metadata for lists or columns in SPS
Can also be displayed in Office applications (Outlook, Word…)Can be offline, can be updatable
Created in SharePoint, SP Designer or VS
![Page 16: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/16.jpg)
Connecting to External Data
SharePoint Designer 2010 supports SQL Server databasesWeb and WCF services.NET connectivity assemblies
SharePoint 2010 provides WCF adapters forOracle, SAP and Siebel
Other external systems Edit the model XML (BDC) file in VS 2010
![Page 17: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/17.jpg)
External List Web Part in SPS
Designed to display External ContentNew for SPS 2010Can also display external content as an external column
![Page 18: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/18.jpg)
Adding External Data to Columns
![Page 19: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/19.jpg)
Viewing in SharePoint Workspace
Offline capableInfoPath forms UIRespects SPS view settings (filter/sort/group)Error/conflict resolutionSearch across external data
![Page 20: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/20.jpg)
Viewing in Word 2010Requires SP ServerCreate using Custom VSTO apps in VSUse SPS Client-Side Object Model
![Page 21: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/21.jpg)
Creating External Content Types in SP Designer
![Page 22: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/22.jpg)
Enabling Operations in SP Designer
![Page 23: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/23.jpg)
Challenges with No-Code Solutions
Subset of operations with no way to customize the implementationNo folder supportNo attachment supportNo search security supportNo support for Word or Excel add-ins
![Page 24: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/24.jpg)
Scenarios for Custom Coding
Aggregations of external dataRequiring multiple calls to source to completeRequiring calls to different sources to complete
Complex TransformationsRequiring one or more transformsRequiring dependent (transactional) transforms
Complex Access ChecksRequiring multiple or complex security checksRequiring access mapping (credentials)
![Page 25: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/25.jpg)
Overcoming UI Limitations
Server-Side Object modelStreamAccessor method
![Page 26: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/26.jpg)
BCS in VS 2010
Also called working with .NET Connector Assemblies
![Page 27: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/27.jpg)
SPS BCS Templates in VS 2010
![Page 28: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/28.jpg)
Business Connectivity Services
BDC Designer allows you to develop, debug and deploy BDC Models
uses External System type “.NET Assembly ConnectorCan import and customize models created in SP Designer
Visual designers in VS 2010BDC ExplorerBDC method details
Tool to generate classesSPMetal - here
![Page 29: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/29.jpg)
VS 2010 BDC Designers
![Page 30: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/30.jpg)
VS Entity Associations
![Page 31: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/31.jpg)
BDC Object Model• BDC contains ONLY
Metadata, no external data
• Access to this object model requires SharePoint Server
![Page 32: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/32.jpg)
Data-Only Solutions
Used to set up subscriptionSimilar to “Sync to” optionsFree tool from MSDN Code Gallery
![Page 33: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/33.jpg)
BDC Server Authentication
SharePoint Server
External SystemWeb 2.0Claims Aware
Service
3. Secure StoreService
BDC ServerRuntime
VLWebPart
Application
2. Process Account
1. Logged-on user
CredentialsTicketDelegation Token
CredentialsApplicationDelegatedToken
SAMLToken
Modes:
1. PassThrough (logged-on user)2. RevertToSelf (process account)3. SSO Authentication (Credentials, etc. from Secure Store)
![Page 34: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/34.jpg)
Secure Store ServiceMaps credentials from user to external systems
![Page 35: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/35.jpg)
BCS Security &.NET Connectors
Authentication Type
WCF Connector DB Connector .NET Host Connector
SQL Auth N/A Yes Code-Based
UserName & Password
Yes Yes Code Based
NTLM Pass through
Yes Yes Yes
Claims Token Yes No Code Based
Oauth / LiveID Code Based No Code Based
![Page 36: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/36.jpg)
SPS Designer vs. VS 2010Capability SharePoint Designer 2010 Visual Studio 2010
ConnectionsSQL Server, WCF/Web services, or .NET Framework connectivity assembly.
Any data source through .NET Framework connectivity assembly.
Modeling approach Discover and use. Create and publish.
Target scenariosAuthor simple models w/UX (Outlook, SharePoint Workspace, InfoPath)
Author complex models with custom connectivity logic for aggregation, transformation, and security.
Author external lists Author custom UX via VSTO
Author simple FK-associationsAuthor reusable External Data Parts and Web Parts.
Limitations
Foreign key-less associations, advanced stereotypes (bulk, batch), generic or polymorphic services, and interfaces containing complex (non-flat) parameter structures.
VS External Content Type Designer works only for .NET Framework connectivity–based models.
![Page 37: SharePoint 2010 Business Connectivity Services](https://reader033.fdocuments.in/reader033/viewer/2022061210/548cc1d6b479598d228b4709/html5/thumbnails/37.jpg)
More Resources
External Content and SP Designerhttp://msdn.microsoft.com/en-us/library/ff728816.aspx
MSDN Channel 9 course on SPS BCShttp://channel9.msdn.com/learn/courses/SharePoint2010Developer/AccessingExternalData/
MSDN Code Samples for Solutionshttp://msdn.microsoft.com/en-us/library/ff621068.aspx