Share via


Sample BDC Model: Using Secure Store Service to Connect to the External System

Applies to: SharePoint Server 2010

The following example shows how to connect to an external system using the credentials stored in the default Secure Store Service and use the default Secure Store Provider provided by Microsoft SharePoint Server 2010.

Example

    <LobSystem Type="Wcf" Name="WCFLobSystem-SecureStore">
      <Properties>
        <Property Name="WcfMexDiscoMode" Type="System.String">Disco</Property>
        <Property Name="WcfMexDocumentUrl" Type="System.String">http://server:port#/Service.svc?wsdl</Property>
        <Property Name="WcfProxyNamespace" Type="System.String">BCSWebServiceProxy</Property>
        <Property Name="WildcardCharacter" Type="System.String">*</Property>
        <Property Name="WsdlFetchAuthenticationMode" Type="System.String">PassThrough</Property>
      </Properties>
      <LobSystemInstances>
        <LobSystemInstance Name="WCFLobSystemInstance-SecureStore ">
          <Properties>
            <Property Name="SsoApplicationId" Type="System.String">SSO</Property>
            <Property Name="SsoProviderImplementation" Type="System.String">Microsoft.Office.SecureStoreService.Server.SecureStoreProvider, 
             Microsoft.Office.SecureStoreService, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Property>
            <Property Name="WcfAuthenticationMode" Type="System.String">Credentials</Property>
            <Property Name="WcfEndpointAddress" Type="System.String">http://server:port#/Service.svc</Property>
          </Properties>
        </LobSystemInstance>
      </LobSystemInstances>
      <Entities>
        <Entity>
          ……
        </Entity>
      </Entities>
    </LobSystem>