You
should find anything you want in the event object
function myResultCallback(event)
{
if (event.operation.name ==
"function1")
...
}
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Fransjo Leihitu
Envoyé : vendredi 22 avril 2005 12:33
À : flex coders
Objet : [flexcoders] Webservice resultok, consider this code:
<mx:Script>
function myResultCallback()
{
}
</mx:Script><mx:WebService id="myService" wsdl="http://www.mydomein.com/script?wsdl" fault="alert(event.fault.faultstring)" result="myResultCallback()">
<mx:operation name="function1">
<mx:request>
<input>my input</input>
</mx:request>
</mx:operation>
<mx:operation name="function2">
<mx:request>
<input>my input1</input>
</mx:request>
</mx:operation>
</mx:WebService>
Everytime I do a send() and the result is done, then everytime the function myResultCallback() is called.
But how do I know from wich operation the result is?So when I do myService.function1.send() and the server responds back, the function myResultCallback() is called, how do I know the result was meant for myService.function1 ?__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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 the Yahoo! Terms of Service.