I further modified my code to this:

var trackerDAO:WebService = new 
WebService("http://ummcstqa16vm/prmc/videotracking/trackerDAO.cfc?wsdl";);
var operation:Operation = new Operation(trackerDAO,"countIt");
operation.addEventListener(FaultEvent.FAULT, alertFault);
operation.countIt(addOne, results, action, source);

Now I am getting this Error:
Call to a possibly undefined method countIt through a reference with static 
type mx.rpc.soap:Operation. 

----------------------------------------

                                From: "wkolcz" <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2008 7:12 AM
To: [email protected]
Subject: [flexcoders] Help with a Action Script web service - Noobie Question 

                                                                                
                I am trying to create a web service in ActionScript that will 
push 4 variables to a remote CFC to do a simple insert. 

How can I pass the 4 variables in the code? Assume I know not much. This is my 
first Web Service.

Here is what I have so far:
var trackerDAO:WebService = new WebService();
trackerDAO.wsdl = "https://umm/prmc/videotrack/trackerDAO.cfc?wsdl";;
trackerDAO.loadWSDL();
var operation:Operation = new Operation(null, "countIt");
operation.addEventListener(FaultEvent.FAULT, alertFault);
operation.request(addOne, results, action, source); <---Wrong??
operation.send(); 

How close am I or how far off? 

                                                


Reply via email to