At 01:37 PM 6/4/2004, Sean A Corfield wrote:
On Jun 4, 2004, at 12:11 PM, Phil Cruz wrote:
[string] ==> faultcode : Server.Connection
[string] ==> faultstring : Unable to connect to endpoint: http://localhost/cfmx/testCFC5.cfc
[string] ==> faultactor : http://cfmx

Well, that says it's not even connecting to your CFC! Show us your Flash code...


Sean A Corfield -- http://www.corfield.org/blog/

Here's the flash code (dump function ommitted for brevity):

import mx.services.*;

_global.userService = new mx.services.WebService("http://localhost/cfmx/testCFC5.cfc?wsdl";);
userServiceResultObj = _global.userService.sayHello("foo");
userServiceResultObj.onResult = function(result) {
trace("result:" + result);
}
userServiceResultObj.onFault = function(fault) {
trace("fault!");
trace(fault.faultcode + "," + fault.faultstring);
trace("fault.detail: " + fault.detail);
dump(fault);
}


The CFC is

<cfcomponent access="remote" displayName="HelloWorld">

  <cffunction name="sayHello" access="remote" returnType="numeric">
        <cfargument name="arg1" type="string" required="true" />
    <cfset var msg = "Hello" >
          <cfthrow  message="helloworld!" />
        <cfreturn 0 >
  </cffunction>

</cfcomponent>

If I take out the <cfthrow> the code works and I can get the result in flash. If I put in the <cfthrow> then I get the "unable to connect to endpoint" error.

-Phil

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

Reply via email to