Questions tagged [cfinvoke]

Invokes a component method from within a ColdFusion page or component.

18 questions
6
votes
4 answers

What is the difference between using cfinvoke and createObject to run a component function?

In my company's code, I've often seen component files used by initializing an object of that component and calling the methods off the object. However, it seems to me somewhat more straightforward to use the cfinvoke method, especially when only…
froadie
  • 71,770
  • 69
  • 154
  • 228
3
votes
1 answer

webservice over HTTPS with self-signed cert in ColdFusion?

How to enable webservice call over HTTPS with self-signed cert in ColdFusion 9? According to the doc, should work, but how about ? If I use cfhttp, do I still need to install the cert as outlined here?…
Henry
  • 31,972
  • 19
  • 112
  • 214
3
votes
2 answers

ColdFusion Application.cfc & cfinvoke & THIS scope

In using the CF application.cfc - there is a need to create some vars to begin with (in the THIS scope) - such as this.name and this.applicationtimeout() etc. I ran across something I consider an odd behavior - and hope someone can explain why this…
j-p
  • 3,410
  • 7
  • 45
  • 79
2
votes
1 answer

Cannot locate component from cfinvoke statement

I had some ColdFusion code handed to me due to someone leaving the company that I was tasked to maintain. The problem is the last time I looked at some ColdFusion code was around 10 years ago so I'm completely lost and I'm starting from scratch. My…
2
votes
1 answer

Coldfusion WSDL IllegalArgumentException on cfinvokeargument

When you are calling a method of a webservice and want to omit an unrequired numeric variable that has a default value set coldfusion will throw the following error: The fault returned when invoking the web service operation is:
''…
Rumpleteaser
  • 3,824
  • 6
  • 35
  • 52
2
votes
2 answers

Should I use cfobject or cfinvoke for a repetitive task?

I need to loop over a set of image paths to grab, resize and store images from external destinations to S3. I'm used to calling cfcs to do this like so:
frequent
  • 24,965
  • 53
  • 166
  • 316
1
vote
0 answers

Query of Queries always returns 0 records?

I have code that worked just fine on ColdFusion 9 but once we did an update to ColdFusion 2016 the code stooped working. Here is an example of the code:
espresso_coffee
  • 5,076
  • 9
  • 53
  • 124
1
vote
0 answers

extracting output from CFInvoke web service

I'm learning how to invoke web-services using coldfusion 7 (later we'll upgrade). I found some free web services to use. stArgs = structNew(); stArgs.symbol = "msft";
Alverant
  • 229
  • 2
  • 5
  • 13
1
vote
3 answers

"Variable TotalCorpAudits is undefined" when invoking a function from cfc

I am getting Variable undefined error when i try to invoke a function from a cfc. The best part is it is already defined above. "IandI" is the cfc name. Code snippet :
Vasu
  • 307
  • 4
  • 18
1
vote
2 answers

How to handle "Invalid method Code length" in Coldfusion?

I have a bunch of cfc files (running coldfusion8), which consist of a cfswitch bundling similar functions (user, search, ...). Some of the cfc files are becoming too large, so I'm receiving a Invalid method Code length 72645 which I assume says,…
frequent
  • 24,965
  • 53
  • 166
  • 316
1
vote
3 answers

why is it not possible to call two methods of the same component sequentially in Coldfusion?

So, I have allmost spend the night chasing a bug.... found it and no idea what is wrong. I have script in Coldfusion which sends two emails. Both mails are in a mailer script which I'm calling with cfinvoke like so:
frequent
  • 24,965
  • 53
  • 166
  • 316
1
vote
2 answers

Why I can't call method in Coldfusion component?

I'm using Coldfusion8 and am stuck trying to call a component. This worked up until a few days ago and although I can't recall changing anything, all my calls to this component now fail. Here the code:
frequent
  • 24,965
  • 53
  • 166
  • 316
0
votes
2 answers

cfinvoke execution order

I have a cfinvoke which writes to a table like 200,000 records. Then I have a another cfinvoke writes about the 100,000 records to the same table. I'm wondering how will this be executed? Would cfinvoke execute first then once done, execute…
MadushM
  • 377
  • 3
  • 16
0
votes
1 answer

How to convert a CFHTTP request with SOAP body in to a CFINVOKE request

I have a ColdFusion 11 site that need to communicate with a payment processor using a SOAP request. I have gotten it to work just fine with a CFHTTP request, but the return value (delivered in a SOAP message) is a bit difficult to work…
0
votes
1 answer

How to fix "Unsupported Schema format for unwrapping! found all but expected sequence" in cfinvoke CF11?

I'm running into an odd issue when invoking a webservice from the cfinvoke tag on ColdFusion 11 Enterprise Edition. The error message I am getting is: Unsupported Schema format for unwrapping! found all but expected sequence The stack trace…
Tantely
  • 59
  • 4
1
2