Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Remotely invoke a CFC?

New Here ,
Nov 28, 2008 Nov 28, 2008
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

TOPICS
Advanced techniques
416
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 28, 2008 Nov 28, 2008
LATEST
If the remote CFC has access="remote" in it's functions, try it as a webservice.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources