Hi Samuel,

 

A few things:

  • Are you sure that you host your Flex application also at the www.ifeel3.com site? This is a necessity for a Flex application to communicate with a webservice, due to Flash’s security model. (unless there is somewhere a crossdomain.xml file with the correct content ... check the documentation)
  • Your code might work, but not necessarily so. The loadWSDL() operation is asynchronous, but takes quite some time to complete. Only after the loadWSDL() has completed (and then some milliseconds more ... see some recent threads in this mailing list) you can fire your operation. To accomplish this you have to register for the LoadEvent.LOAD event
  • I don’t know where all this AsyncToken stuff comes from, but invocation of webservices can be done much simpler. Just try: tsWS.createUser(sessionId, userName, dob).
  • Expect some difficulties with Flex and the support of DOC/Literal webservices; I see that you are probably using .Net and DOC/Literal, and there are some issues with it. Also check the mailing list for this.

 

HTH,

Franck

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Samuel Colak
Sent: Sunday, August 13, 2006 1:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help regarding WebServices (FLEX) in Actionscript

 

var tsWS:WebService = new WebService();
tsWS.wsdl = "http://www.ifeel3.com/webservices/service.asmx?WSDL";
tsWS.loadWSDL();

var op:AbstractOperation = tsWS["createUser"];
tsWS.addEventListener("result", doResults);
tsWS.addEventListener("fault", doFailed);
var token:AsyncToken = op.send();
token.responder = new Responder(resultOut, null);

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

All,

i am tring to access some webservices i have written in dotNet from Flex. If anyone can point
out where i am going wrong, please send me an email to [EMAIL PROTECTED]at-home.com.

The WSDL is publically visible - the only part missing are the eventlistening functions.

Many thanks,
Samuel

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to