Brad, the CFC looks ok, but have you tried returning a variable instead of a literal? Like so:
<cfcomponent output="false"> <cffunction name="hi" returnType="string" output="no" access="remote"> <cfset myString = 'Hello World'> <cfreturn myString> </cffunction> </cfcomponent> I only offer it as a suggestion because I've never seen it done with a literal before. -mk -----Original Message----- From: Brad Howerter [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 10:10 AM To: CF-Talk Subject: Calling a CFC from perl Yes, thanks Sean. I discovered that shortly after my original post. But I'm still having trouble... Here's my cfc code: <cfcomponent output="false"> <cffunction name="hi" returnType="string" output="no" access="remote"> <cfreturn 'hello, world'> </cffunction> </cfcomponent> And here's how I'm trying to access it: <cfscript> ws = CreateObject("webservice", "http://webftc18/com/woodward/example.cfc?wsdl"); mystring = ws.hi(); writeoutput(mystring); </cfscript> I get this nasty error: Could not generate stub objects for web service invocation. It says my WSDL document is bad. But coldFusion MX generates the WSDL!! What am I doing wrong? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4