Skip to main content
Known Participant
November 28, 2008
Question

Remotely invoke a CFC?

  • November 28, 2008
  • 1 reply
  • 429 views
It appears that you can't invoke a CFC remotely using CreateObject. I've been trying by including all four arguments (type, class, context and server) like so:

<cfset CleanClaim = createObject("component", "ocs4.ic.IsClean","remote"," http://mxtest2.emp.state.or.us:7084").init( DSN = "#mydsn#") />

However, it always get a message that, "Could not find the ColdFusion Component ocs4.ic.IsClean". Everything works if I copy the CFC to the local server and execute it like so:

<cfset CleanClaim = createObject("component", "iic.utility.IsClean").init( DSN = "#mydsn#") />

Wondering if anyone has even gotten this to work? Thanks for any input.

...Brad

This topic has been closed for replies.

1 reply

Inspiring
November 28, 2008
If the remote CFC has access="remote" in it's functions, try it as a webservice.