Your code seems to work for me, are you able to view the WSDL file for the remote CFC in your browser?
Scott Keene http://www.cfoop.com ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mehdi, Agha Sent: Thursday, December 04, 2003 1:15 PM To: [EMAIL PROTECTED] Subject: [CFCDev] Calling CFC's as webService Hi all, I created a cfc and need to call that cfc from another cfc on another server in the same network. Please see the code below: ---------------------------------------------------------------------------- ----------------------------------------------------- <cffunction name="publishFolders" access="remote" returntype="boolean"> <cfargument name="uName" required="yes"> <cfargument name="libId" required="yes"> <cfinvoke webservice="http://server1/app/components/myCFC.cfc?wsdl" method="publishFolders" returnvariable="success"> <cfinvokeargument name="uName" value="#arguments.uName#"> <cfinvokeargument name="libId" value="#arguments.libId#"> </cfinvoke> <cfreturn success> </cffunction> ---------------------------------------------------------------------------- ----------------------------------------------------------- The myCFC.cfc being called on SERVER1 ---------------------------------------------------------------------------- ----------------------------------------------------------- <cffunction name="publishFolders" access="remote" returntype="boolean"> <cfargument name="uName" required="yes"> <cfargument name="libId" required="yes"> <cfif fileExists("--path to a file on server1--")> <cfset success=true> <cfelse> <cfset success=false> </cfif> <cfreturn success> </cffunction> ---------------------------------------------------------------------------- ----------------------------------------------------------- When this code runs, CF throws the following error: ---------------------------------------------------------------------------- ----------------------------------------------------------- Could not generate stub objects for web service invocation Any help will be highly appreciated. Agha I Mehdi Web Developer IT-Web Group Littler Mendelson, P.C. Office: 415-288-6362 Cell: 510-364-5298 Fax: 415-956-2353 ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
