Should be something like this:

var service:WebService = new WebService();
service.loadWSDL("http://some.wsdl.url";);
service.addEventListener(LoadEvent.LOAD, onWsdlLoad);

and then onWsdlLoad could look something like this:

var op:Operation = service.getOperation("GetDocument") as Operation;
op.resultFormat = "e4x";

op.arguments.EnterpriseId = enterpriseID;
op.arguments.DocumentType = documentType;

var call:AsyncToken = op.send();
call.addResponder(instanceThatImplementsIResponder);


I know the operation portion of that code is correct but the
definition part is off the top of my head.

HTH,
Ben


--- In [email protected], "Merrill, Jason"
<[EMAIL PROTECTED]> wrote:
>
> I'm going to check both of those out, but are there any Actionscript 3.0
> only examples of connecting and using a Webservice?  I did this a lot in
> Actionscript 2.0, but I need an Actionscript 3.0 example. Everything I
> have seen online and in the docs is MXML, which won't work for my
> Actionscript-only project.
>  
> 
> Jason Merrill 
> Bank of America  
> GT&O Learning & Leadership Development 
> eTools & Multimedia Team 
> 
> 
>  
> 
> 
> ________________________________
> 
>       From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Samuel R. Neff
>       Sent: Thursday, September 27, 2007 6:30 PM
>       To: [email protected]
>       Subject: RE: [flexcoders] Flex code generator for webservice
>       
>       
> 
>       
>        
>       FlexBuilder 3 beta 2 also has an AS3 code generator based on
> WSDL.
>        
>       
> http://www.onflex.org/ted/2007/09/flex-3beta-2-crud-wizard-for-aspnet-ph
> p.php
> <http://www.onflex.org/ted/2007/09/flex-3beta-2-crud-wizard-for-aspnet-p
> hp.php> 
>        
>       Sam
>        
> 
>       -------------------------------------------
>       We're Hiring! Seeking a passionate developer to join our team
> building Flex based products. Position is in the Washington D.C. metro
> area. If interested contact [EMAIL PROTECTED]
>         
> 
>        
>       
>       
> ________________________________
> 
>       From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of muratt_cim
>       Sent: Thursday, September 27, 2007 5:36 PM
>       To: [email protected]
>       Subject: [flexcoders] Flex code generator for webservice
>       
>       
>       Hello,
>       
>       We developed an application named flextense and you can download
> freely.
>       Flextense is an application for Flex Users which composes the
> automatic ActionScript proxy classes for accessing the web services.
>       
>        ... 
>       For more information: http://www.flextense.net
> <http://www.flextense.net>
>


Reply via email to