Sunday, October 27, 2013

Managed Helper Classes (Library) for eDOCS DM API

OpenText (Hummingbird) eDOCS DM API is ActiveX-based. It looks like it's been written decades ago and it's quite "low-levelish". Error reporting is based on return codes and not on exceptions. And it's syntax is VB6-like that is common for ActiveX components.



The first thing a .NET developer would do in this case, is to create real .NET wrappers to isolate herself from calling old VB6-style functions, have robust (ideally SOLID) classes, and exception-based error reporting.

And that was exactly what I started with. Here is the result - my DmApiHelpers with some unit tests: https://github.com/dotnetnick/edocs

Currently, it's still rather raw, but for anyone looking into using DM API and developing in C#, it may be a good start, so enjoy. I'll write a few posts to focus on some methods and source code snippets to help others find code and also to increase "discoverability" and the rank of this blog :)

No comments:

Post a Comment