Question
Sending objects from FMS to ColdFusion
Hi All.
I need the ability to send an object of variable properties to a ColdFusion CFC for processing. I can send a call to a CFC with specific arguments (not of type object) all fine, but sending an object fails all of the time.
I define my object on the FMs side as the following:
objMyObject= {};
objMyObject.message = "INFO - This is an object test!";
objMyObject.type = "info";
objMyObject.reason = "Testing sending an object to a coldfucion CFC";
After setting the NetServices gateway and appropriate responder with result and status methods, I call the CFC method with the following line:
myCFCService.sendObjectTest(objMyObject);
In my gateway onStatus responder I get the following:
Level: error
Code: SERVER.PROCESSING
String too long to display
Description: Service threw an exception during method invocation: The parameter OBJOBJECT to function sendObjectTest is required but was not passed in.
The 'String too long to display" line is trying to print out the info.details portion of the info object.
So the CFC recognises that SOMETHING needs to be passed to it (I currently have it set as type="any"), but the server side simply fails to send anything! I have a cfmail as the first line inside my CFC, and this never gets hit, and this is also wrapped inside a try/catch block, and this never fires either - it simply dies on the call to the CFC.
Can anyone help me out here?
Thanks in advance,
K.
I need the ability to send an object of variable properties to a ColdFusion CFC for processing. I can send a call to a CFC with specific arguments (not of type object) all fine, but sending an object fails all of the time.
I define my object on the FMs side as the following:
objMyObject= {};
objMyObject.message = "INFO - This is an object test!";
objMyObject.type = "info";
objMyObject.reason = "Testing sending an object to a coldfucion CFC";
After setting the NetServices gateway and appropriate responder with result and status methods, I call the CFC method with the following line:
myCFCService.sendObjectTest(objMyObject);
In my gateway onStatus responder I get the following:
Level: error
Code: SERVER.PROCESSING
String too long to display
Description: Service threw an exception during method invocation: The parameter OBJOBJECT to function sendObjectTest is required but was not passed in.
The 'String too long to display" line is trying to print out the info.details portion of the info object.
So the CFC recognises that SOMETHING needs to be passed to it (I currently have it set as type="any"), but the server side simply fails to send anything! I have a cfmail as the first line inside my CFC, and this never gets hit, and this is also wrapped inside a try/catch block, and this never fires either - it simply dies on the call to the CFC.
Can anyone help me out here?
Thanks in advance,
K.
