Title: 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


----
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


Reply via email to