Hi again... I am attempting to expose a CFC to other servers on our network, and I just learned how incredibly easy this "should" be, adding access="remote" to my CFC. I am using the Windows Server 2008 installer from https://www.viviotech.net/company/installers.cfm for the server that hosts the CFC (with IIS7 as my web server). This appears to come bundled with Openbd 2.0, which I have attempted to update by replacing the "openbd/lib" folder with that from a fresh download of OpenBD. Here are the contents of test1.cfc in my root directory...
> <cfcomponent displayname="testCFC"> > <cffunction name="testFunction" access="remote" output="no" > returntype="string"> > <cfset res = "this ran"> > <cfreturn res> > > </cffunction> > </cfcomponent> > If I call this CFC directly in a browser with http://mysandbox/test1.cfc?wsdl&method=testFunction, I see "this ran". But here is my attempt to reference it from a cfm page... > <cfinvoke webservice="http://mysandbox/test1.cfc?wsdl" > method="testFunction" > returnvariable="cfResults"> > </cfinvoke> > I get the following error: "Failed to access WSDL: http://mysandbox/test1.cfc?wsdl". When I try CreateObject instead... > <cfset cfResults2 = CreateObject("webservice", " > http://entsandbox/test1.cfc?wsdl")> I get "HTTP/1.1 500 Internal Server Error". I found a thread from a few years ago discussing a similar issue and advising to make sure the OP had "tools.jar" from JDK in the WEB-INF/lib folder. But since this is connected to IIS, I don't have a WEB-INF folder in my root directory. I did however make sure to copy tools.jar to "openbd/lib" just in case. -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
