Skip to main content
October 2, 2009
Question

CF8, Ajax and Web Services

  • October 2, 2009
  • 1 reply
  • 537 views

Hi,

We have an older CF 6.1 app we are migrating to CF 8, we have a series of web services that are called via javascript functions on the client side.

These functions build the xml document from scratch and send it onto the web service components. Using Neoload and sending the xml manually to the web service I get a successful response, but from within the application the returned response is empty!

Someone had mentioned a Gotcha with web services when using the on Request method, we are using this method within the application.cfc.

Can anyone shed any light on this?

thanks,

Tomas

This topic has been closed for replies.

1 reply

Inspiring
October 2, 2009

Here are some links (found on Google):

http://livedocs.adobe.com/coldfusion/8/htmldocs/AppEvents_08.html#1186087

http://www.coldfusionjedi.com/index.cfm/2005/10/16/Ask-a-Jedi-Using-UDFs-with-an-Applicationcfc-Framework

http://corfield.org/blog/index.cfm/do/blog.entry/entry/Applicationcfc__onRequest_and_CFCs

This issue has been fixed in CF9 with the addition of the onCfcRequest handler.  This is not officially documented yet, but Ben Nadel covers it here: http://www.bennadel.com/blog/1647-Learning-ColdFusion-9-Application-cfc-OnCFCRequest-Event-Handler-For-CFC-Requests.htm

--

Adam

October 3, 2009

Adam,

Thanks very much for the links, much appreciated. I'll take a look at all of

these.

Tomas