Skip to main content
July 28, 2010
Question

Accessing ColdFusion API via .NET

  • July 28, 2010
  • 2 replies
  • 1195 views

I work for cPanel and we are trying figure out a way to support ColdFusion via our own .NET code.  i.e., we would like to be able to call into the API to as part of creating a website to enable or disable a given user as well as configure their options relating to security.  All of our code is in C++/CLI and C#, and most likely needs to stay that way.

In short, can I access ColdFusion via my C# code?

This topic has been closed for replies.

2 replies

Inspiring
August 2, 2010

Generally speaking the way to talk to a CF application from .NET is webservices.

With what I know about cPanel I presume that you specifically want to talk to Admin API: http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fcf.html

The Admin API offers access to all the ColdFusion administration functionality and is a stable API. Even if the internals of ColdFusion change, Adobe will try to keep the API the same. The problem you will have is accessing this API from .NET. All the methods in the API are exposed as "public" methods allowing them to be accessed from CF, but not as "remote" methods, allowing access through the webservices. So what you probably need to do is write a small wrapper class to extend the existing CFCs in the administrator and makes them accessible through webservices and then invoke this wrapper from .NET.

August 2, 2010

Thanks for your help. I have done additional research in this area and feel your suggestion is the best, and perhaps the only, way to do what we need.

Sincerely,

Jeff Armstrong

cPanel, Inc

Inspiring
July 29, 2010

Options:

1. Create ColdFusion based web services

http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSfd7453be0f56bba4-27c63377122e3f5e296-8000.html

2. If you have existing pages that take HTML form data via HTTP posts to make the API changes you want, just post to those pages from your .NET application.