K2 Services - Part 2

7 Mins. Read.
This blogpost is outdated. Please see K2 SmartObject Services – Configuration update static endpoint if you have any problems with the K2HostServer.config file changes.

Back when 1230 came out, I wrote a pretty long blogpost about the K2 SmartObject Services and (what was the beginning of) K2 Services. K2 Services is the Web Service that exposes a number of interfaces. K2 SmartObject Services is the K2 Server hosted WCF endpoint which allows SmartObject functionality. This post focuses only on K2 Services. The only change to the K2 SmartObject Services that 1290 brought was CRUDE (E for Execute) functionality to the RESTful part of K2 SmartObject Services. I’ll do another post on that new functionality.

This post is a follow up, since the K2 Services has more features in the 1290 release. The service now offers the following endpoints:

  • SyncREST.svc
  • SyncWCF.svc
  • REST.svc
  • WCF.svc
  • WS.asmx

The WCF.svc and WS.asmx have already been covered in the 1230 post. They have changed, but not much, you can read about it in this KB1227 article.

The new sync services are designed with batch processing in mind. This also includes batch-actioning of worklist items so you can do things offline and have your app sync at a later stage. Sync simply stands for synchronization, something you can do with batch processing more easily.

K2 SmartObject Service and Versioning

2 Mins. Read.
This blogpost is outdated. Please see K2 SmartObject Services – Configuration update static endpoint if you have any problems with the K2HostServer.config file changes.

Since the coming of the K2 SmartObject Service in KB1230 , people might have noticed the smartobjectVersion parameter in the managedEndpoints definition. Since SmartObjects have been around, they always had a version. The version number starts at 0 (zero) and increases by 1 (one) when the SmartObject is deployed.

K2 1290 is released

2 Mins. Read.
This morning I received a happy e-mail from the K2 team about the release of 1290. In short, this release includes the following: K2 Pass-Through Authentication – An alternative to Kerberos! Process definition delete K2 Designer for SharePoint – Process naming and sharing Office 2010 ribbon in K2 Studio Documentation has been improved and enhanced K2 Services – REST Enabled Services CRUD support for K2 SmartObject Services via REST Updated Wizards Code Reference Event Enhancements – Ability to reuse returns from previous service calls in K2 Designer for Visual Studio and K2 Studio Usability Improvements for lists of metadata – Ability to search and filter lists of metadata.

LINQ2SQL: Where is the DataShape class?

1 Mins. Read.
We’re going to use LINQ2SQL in a project. Don’t ask why we’re not doing Entity Framework. When you start out with LINQ2SQL, you’ll google bing on “LINQ2SQL”. This, if you feel lucky, ends up in this page: http://msdn.microsoft.com/en-us/library/bb425822.aspx The page is long and old. The read, you’ll just have to cope with. That it is old is sometimes annoying because it’s outdated. What I couldn’t really find was the DataShape class on msdn.

C# using statement and the K2 APIs

3 Mins. Read.

Recently in one of our projects, we had to do some performance optimizations that required us to look a bit closer at the resources our application used. In general, you should always dispose an object that’s implementing the IDisposable interface.

K2’s client API’s use a connection to the K2 server which needs to be closed and disposed after you’re done using them. In C# you can use the using-statement to dispose your objects when you’re done with it. The using-statement only works on objects that inherits from IDisposable.
Here are some examples of how to correctly use the using-statement when using K2 API’s.

K2 Web Services - Part 1

10 Mins. Read.
This blogpost is outdated. Please see K2 SmartObject Services – Configuration update static endpoint if you have any problems with the K2HostServer.config file changes.

In the 1200 series, a few new web services are available out of the box. In this article I’ll tell you what they are for, how you can use them and give some insight on the technical details behind the services to make you understand them better.

There are two services new to K2 in the 1200 series:

  • K2 Services
  • K2 SmartObject Services

The K2 Services were first introduced in the KB001200 Update which contains a WS and WCF endpoint.  A later release will bring REST-enabled endpoints for the K2 Services.  The SmartObject Services are released in KB001230.

This post will cover the KB001200 and KB0001230 release functionality.  The additional REST-enabled endpoints for K2 Services will be discussed in a separate post once released.

KB001200 now available

1 Mins. Read.
Just a quick post to let you know that the KB001200 that i posted about, is now available! Customers that already have a K2 blackpearl/blackpoint license can download this update from their customer portal. There’s a PDF up that shows all the features (and know issues). And if you want to upgrade, check this PDF.

K2's KB001200 release

Since the release of K2 4.5 back in April, it’s been a bit quite of time before we got something new. We’ve seen the K2 components for SharePoint 2010 been release, but that didn’t bring any new functionality to the table. For those who don’t know, it “only” provides the same functionality of the SharePoint 2007 components. This doesn’t mean guys in South Africa have only been watching the worldcup, they’ve been working on a beauty called the 1200 series, which starts with the KB001200 update release.

Creating a subsite using the client side object model in SharePoint 2010

We’ve all seen loads of things to you can so with the new Client Side Object Model in SharePoint 2010. I’m personally loving it more and more! The only downside is, most examples and code is made to retrieve information. The object model can also be used to create things! Here’s a quick post on how we are creating subsites using the client side object model: using (ClientContext ctx = new ClientContext("

K2's 4.5 RC is here.

Nearly every SharePoint blog is reporting on the release date of SharePoint 2010. You might have not noticed that K2 has released the RC version of the all important 4.5 :) The RC version is available via the K2 Portal site under the beta download section. This also means it’s only available for the current partners, customers and insiders. Here are the main enhancements (copied from the release notes): New support for: