Whatever message this page gives is out now! Go check it out!
invoke(instance, methodname [, arguments])Parameter | Description |
instance | Required. For CFC : String or component object; a reference to a component, or component name/path to instantiate. Can be an empty string when invoking a method within the same ColdFusion page or component. For webservice/Java/.NET/COM/Corba : object instance |
methodname | Required. Name of a method. For a web service, the name of an operation. |
arguments | Optional. Arguments to pass to the method. |
<cfscript>
obj = createObject("component","TestComponent");
invoke(obj,"function1",{a1="ColdFusion"});
</cfscript><cfscript>
obj = createObject("webservice","http://somedomain/test.cfc?wsdl");
//Invoke foo
result = invoke(obj,"foo",{arg1="ColdFusion"});
//Invoke bar with two arguments, passing the second argument as null.
result = invoke(obj, "bar", {arg1="ColdFusion", arg2=javacast("null", "")});
</cfscript>