Great :)

And is it also possible to instantiate the webservice class with
actionscript?

I guess it will be something like this right:

import mx.servicetags.WebService;

var ws = new WebService();
ws.wsdl = "http://api.google.com/GoogleSearch.wsdl";;


(is this documented somewhere?)

Greetz Erik


-----Original Message-----
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: woensdag 16 maart 2005 12:16
To: [email protected]
Subject: RE: [flexcoders] Dynamicly calling a webservice


Hi,

actually, you don't have to declare all operations within the WebService
tag - you can invoke a method directly on the stub:

ws.oneMethod(param1, param2);

or 

ws["anotherMethod"](param1, param2);

or even

ws.thirdMethod.apply(null, arrayOfArguments);

Does this help?

Dirk.

> -----Original Message-----
> From: Erik Westra [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 16, 2005 12:07 PM
> To: [email protected]
> Subject: [flexcoders] Dynamicly calling a webservice
> 
> 
> 
> I know u can call a webservice like this:
> 
> <mx:WebService id="ws" wsdl="http://api.google.com.GoogleSearch.wsdl";>
> <mx:operation name="doGoogleSearch">
> <mx:request>
> <key1></key1>
> <key2></key2>
> </mx:request>
> </mx:operation>
> </mx:WebService>
> 
> 
> But i cant find anything on calling an operation from a webservice 
> dynamicly. I want to have class that registers itself with our 
> framework and then makes the call when it recieves an event. This way 
> we are able to debug shizzle.
> 
> But how do i create the request object via actionscript?
> Or is there a way to instantiate the webservice class via 
> actionscript?
> 
> 
> Greetz Erik
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


 
Yahoo! Groups Links



 





Reply via email to