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 result

ok, 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

Reply via email to