I'm devoloping a Control Time System which I have to call
severel services which return several information.. the problem is,
that some services needs the information returned by another
service, and the information never gets at time,, I call the
service, and it goes to the function in result=getActivityList,
when it returns stops there all the information in my variables
sometimes I try to debbug, and when it return
result="getActiviyList();" <--- To this point fault="ActivityFaultHandler(event)">
, even if they're globla vars.. the thing is, i don't know
how to control the call of the services, and how to finish the
If you got the idea of my problem, please write me back as
soon as possible.
One way to implement this is to call the dependent service in
the resultHandler. For example, if call to serviceX is dependent on
results from the call to unitsService, in your code snippet, then
you can call serviceX in the getActivityList() function, which is
the resultHandler for unitsService.
Use of AsyncTokens might also hel when calling multiple
services. Please look up documentation for AsyncToken usage.