Ticket #346 (closed defect: fixed)
cfajaxproxy not work with RemotingService.cfc
| Reported by: | SirRawlins | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Version: | 3.0.178 | Severity: | major |
| Keywords: | Cc: |
Description
I've had some issues today with cfajaxproxy and getting it to work with RemotingService?.cfc. I've detailed the error on the mailing list http://groups.google.co.uk/group/model-glue/browse_thread/thread/3d66e3f0a6d7582d.
Now, after some testing I've managed to trace the the problem to what appears to be a CF bug whereby cfajaxproxy is unable to communicate with methods from the base cfc in an inherited object. Being that RemotingService?.cfc has to inherit it's methods from the MG abstract RemotingService? this causes a problem and results in the error detailed in the mailing list.
The neatest work-around I've found for this is to expose the methods from the base class in the parent class, the footprint for this method must be the same as that of the base class, it then simply returns the result from the method in the base class.
By changing the contents of RemotingService?.cfc to look as follows:
The problem is resolved and cfajaxproxy is then able to connect and communicate with it.
Hope this helps. It is an essential for anyone working with MG and cfajaxproxy. Sorry for the sloppy explanation, it's been a long day.
Rob
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)