Skip to main content
Participating Frequently
July 15, 2009
Answered

Web Services Issues in Coldfusion 8

  • July 15, 2009
  • 1 reply
  • 936 views

Hello all,

I am trying to deploy .cfc files as web services in a multiserver coldfusion 8 environment.  So far it has not been working out so well.  Whenever I navigate to the .cfc file in a browser the page dumps the .cgi scope and not the component documentation.  If i append ?wsdl to the URL  I get the code for the .cgi scope dump.   You also cannot manually register a web service in the coldfusion administrator.  (components that will be web services are marked as access="remote", these same .cfc files have been and are being used in CF 7.1.)

The cfc files in the CFIDE folder use the cfcexplorer.cfc component and do show the component documentation.

-----------------------------------------------------------------

My Environment:

3 x T6300 Sun Solaris Blades

3 x 8 core processors

32GB RAM

Hardware Load Balancer:

Juniper DX

NAS /web partition mount for webroot

---------------------------------------------------------------

Does anyone know of any issues with web services in multiserver CF 8 environment?  Why would the .cfc and .cfc?wsdl dump the cgi scope and not show me the component documentation or the WSDL file?  Is there a setting that I am missing somewhere to allow web services?  Why can't I explore the cfc documentation on a file in the webroot?

Any help or insight would be greatly appreciated!

thanks in advance

Steve

    This topic has been closed for replies.
    Correct answer ilssac

    There is nothing about web service and multi-home ColdFusion or ColdFusion 8 that should be radically different then web services in stand-alone CF7.

    Is there anychance there is an arrent Application.cfc file that might be applied to these ColdFusion component files?  Note that any Application.cfc file (or Application.cfm) between the CFC file and the root directory would be applied to the code running the web service.  There is an often overlooked gotcha with some Application.cfc files that use the onRequest() method.  This method can interfere with the normal deliver of a wsdl response to a web service request if this has not been accounted for in the onRequest() method.

    1 reply

    ilssac
    ilssacCorrect answer
    Inspiring
    July 15, 2009

    There is nothing about web service and multi-home ColdFusion or ColdFusion 8 that should be radically different then web services in stand-alone CF7.

    Is there anychance there is an arrent Application.cfc file that might be applied to these ColdFusion component files?  Note that any Application.cfc file (or Application.cfm) between the CFC file and the root directory would be applied to the code running the web service.  There is an often overlooked gotcha with some Application.cfc files that use the onRequest() method.  This method can interfere with the normal deliver of a wsdl response to a web service request if this has not been accounted for in the onRequest() method.

    coon5150Author
    Participating Frequently
    July 15, 2009

    That was so it!!  There was a rogue Application.cfc in the webroot.

    Ian Thank you very much!!! Somtimes it is the things we aren't even thinking about!!