would you mind sharing?  I can't for the life of me get this working now
either!
I'm getting The specified function '' on the CFC RemotingService must have
its access attribute set to 'remote'.CF9 just throws a NPE, how helpful :)

2009/7/17 Sir Rawlins <[email protected]>

>
> I've found out what this was, it's a bug in CF, I've got a work-around
> which I'll submit to DW for approval and commit into the MG source.
>
> Rob
>
> On 17 July, 17:47, Sir Rawlins <[email protected]>
> wrote:
> > Hey Chris,
> >
> > I can confirm that to be the case, when browsing
> tohttp://localhost:81/RemotingService.cfc?wsdlI get a working WSDL
> > document for the remotingservice, as expected.
> >
> > Rob
> >
> > On 17 July, 17:42, Chris Blackwell <[email protected]> wrote:
> >
> >
> >
> > > Rob,
> > > Can you just clarify for me..
> >
> > > the RemoteService.cfc that comes with MG should be in the root of your
> MG
> > > application, is that where you have it?  Nothing in the ModelGlue
> directory
> > > needs to be web accessible.  I have had this working previously
> >
> > > 2009/7/17 Sir Rawlins <[email protected]>
> >
> > > > Thanks Chris,
> >
> > > > I don't actually need it for this project but that's a handy work
> > > > around for when it is needed!
> >
> > > > Now, the changes I've made partially solve my problem, I'm now able
> to
> > > > make cfajaxproxy requests to my own custom build CFC's but I'm still
> > > > unable to make requests to the RemotingService.cfc that comes with
> MG.
> >
> > > > As we see above I get a CF error when I try to use the cfajaxproxy to
> > > > create the object so I have to use the full path to the abstract
> > > > object within MG, unfortunatley it then appears I'm unable to make
> any
> > > > requests to that, my guess being that it's because that MG isn't web-
> > > > accessible as it's not under my webroot so the JS isn't able to make
> > > > requests to the CFC.
> >
> > > > Hmmmmm, I wonder why using the cfajaxproxy won't work with the
> > > > RemotingService.cfc that is in the webroot?
> >
> > > > Rob
> >
> > > > On 17 July, 17:06, Chris Blackwell <[email protected]> wrote:
> > > > > Incase you actually need the onRequest method for "normal" page
> requests
> > > > you
> > > > > can use the following snippet in onRequestStart
> > > > > <!--- Remove the onRequest method for remote cfc calls, otherwise
> we'll
> > > > get
> > > > > a blank response --->
> > > > > <cfif listlast(arguments.targetpage, ".") is "cfc">
> > > > > <cfset StructDelete(this, "onRequest") />
> > > > > <cfset StructDelete(variables,"onRequest")/>
> > > > > </cfif>
> >
> > > > > Chris
> >
> > > > > 2009/7/17 Sir Rawlins <[email protected]>
> >
> > > > > > Hello Jim,
> >
> > > > > > Managed to solve this with the great efforts of my fat northern
> friend
> > > > > > James Allen. I've seen this issue before myself when working with
> web
> > > > > > services and it's a bitch to diagnose and I believe generally
> > > > > > considered to be a bug in CF.
> >
> > > > > >
> http://jamesallen.name/index.cfm/2008/1/30/Bug-in-calling-CFCs-remote.
> > > > ..
> >
> > > > > > I removed my onRequest() method from my application.cfc and it's
> now
> > > > > > returning data as expected!.
> >
> > > > > > Hope this helps someone else in the future.
> >
> > > > > > Rob
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to