I tried using the ?wsdl query string but received an internal server error. I'm using the Desktop Server. All I did was create a wwwroot folder, prepared it the automatic way, and made a "practice" directory (with another directory inside it) in wwwroot. All my .cfm files work, just the example .cfc doesn't. I'm invoking the CFC by typing http://127.0.0.1/practice/oop/greetings.cfc into my browser when I have the Desktop Server on. That's the usual way I've been doing it. I'm new to CFML so forgive me; I've been teaching myself.
On Nov 13, 7:47 pm, Alan Holden <[email protected]> wrote: > Check system permissions on the file. > How are you invoking the cfc? Is there a cfm file that's consuming this > service, and what doesthatcode look like? > I don't think you can just call a component - likehttp://myserver.myfile.cfc > Try calling your cfc with the ?wsdl query string on the end of the url, and > see if you at least get a proper definitions xml doc. > Likehttp://myserver.myfile.cfc?wsdl > Al > On 11/13/2011 6:33 PM, Travis wrote:I'm getting this error when I try to > access a CFC. ******************************************************** HTTP > ERROR 403 Problem accessing /practice/oop/greetings.cfc. Reason: Forbidden > ******************************************************** All I'm trying to do > is run a simple CFC. component displayname="greetings" { function sayHello() > { // the CFML code for the method will go here var strHelloMessage='Hello > World'; return strHelloMessage; } } -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
