Yes It shows me the WSDL. I had the same problem with calling webservice from CF that I created with ASP.
-----Original Message-----
From: Scott Keene [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 04, 2003 10:51 AM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Calling CFC's as webService
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]
----
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]
Littler Mendelson, P.C.
http://www.littler.com
