First, loadWSDL() is asynchronous.  You need to wait for the
LoadEvent.LOAD event before attempting to call an operation.

 

Also, declare and use a result Handler in addition to the fault handler.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 12:34 PM
To: [email protected]
Subject: [flexcoders] Does anyone know ANYTHING about AS Webservices?

 

I created a simple web service using ColdFusion CFC. It takes a struct
and inserts the info into the database. Works fine from a direct call
using CF's createObject("webservice") so I know it works...

However in AS, I am getting this error:
faultCode:DecodingError faultString:'SOAP Response cannot be decoded.
Raw response: ' faultDetail:'null'

Here is my Web Service Script:
var ws:WebService = new WebService();
ws.wsdl =
"https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl";;
ws.addEventListener(FaultEvent.FAULT, alertFault);
ws.loadWSDL();
ws.countIt({trackData:trackInfo});

I have looked at 100 different examples and none of them work. Does
ANYONE know how I can get this to work? I have a Wednesday deadline to
get this thing to work. 

 

Reply via email to