K2 BLACKPEARL PRODUCT DOCUMENTATION: USER GUIDE
Walkthrough: Create Managed Endpoint

Walkthrough: Create Managed Endpoint

K2 SmartObject Services allows access to SmartObjects via WCF endpoints.  Please refer to K2 for SharePoint - K2 SmartObject Service Management for more information.

SharePoint Designer is not able to work correctly with a WCF endpoint that contains multiple service contracts.  Therefore, we must configure a static endpoint for each SmartObject we wish to consume via BCS.  SmartObject Services configuration makes this easy via the <managedEndpoints><static> section in K2HostServer.config.  The example below will generate a static endpoint for the sample K2 Employee SmartObject.

Copy
<smoServices enableEndpoints="true" enableEvents="true" enableCrossDomainPolicy="false" scheme="http" server="k2.denallix.com" port="8888" serviceRoot="SmartObjectServices" specialCharacterReplacement="_" enableMetadata="true">
  <wcf binding="wsHttpBinding" bindingConfiguration="wsHttpBinding+Windows" />
  <rest binding="webHttpBinding" bindingConfiguration="webHttpBinding+Windows" />
  <managedEndpoints>
    <excluded all="true" />
    <static>
      <endpoints>
        <endpoint categoryPath="K2 Samples" smartobjectName="K2 Employee"/>
      </endpoints>
    </static>
  </managedEndpoints>
</smoServices>

The static endpoint can be seen by navigating to the endpoints.xml page for SmartObject Services. The example endpoints.xml below was generated for the K2 Employee SmartObject.

Copy
<?xml version="1.0"?>
<endpoints>
  <wcf-endpoints>
    <endpoint>http://k2.denallix.com:8888/SmartObjectServices/wcf/K2 Samples/K2 Employee</endpoint>
  </wcf-endpoints>
</endpoints>

The WCF endpoint is what we will use to surface SmartObject data to SharePoint 2010 BCS.

Before we can get started Now that we have a WCF endpoint for our SmartObject, we can surface our data via SharePoint 2010 BCS. However, before we can configure the External Content Type, we must ensure we have a Secure Store Application. See Walkthrough: Create Secure Store Target Application.

 

 


K2 blackpearl Help 4.6.10 (4.12060.1690.0)