The data service classes do not really support dynamic instantiation in AS, though I understand some people have gotten this to work.
Tracy -----Original Message----- From: Fernando Barros [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 2:01 PM To: [email protected] Subject: [flexcoders] WebService in AS Hi there! How can I create an webservice in as? I tried this but I was receiving "Could not load the wsdl", but the usual way I got no problems. Here is my code: import mx.services.WebService; var wsProposta:WebService; wsProposta = new WebService("http://www.officer.com.br/funcoes/fProposta.cfc?wsdl"); objWsProposta = wsProposta.Lista(nRevendaID, sVarEntrada, nNumeroProposta, DtInicia, DtFim); objWsProposta.onResult = function(result) { trace("Nome: "+result.SNOME); } objWsProposta.onFault = function(fault) { trace(fault.faultCode + "," + fault.faultstring); } Obrigado, � --------->--------->--------- Fernando Barros --------->--------->--------- Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

