How do I handle multiple responses from a single web service call in Flex?

I have a requirement where a web service call must be started from the flex side, and this web service is an asynchronous web service that returns more than one response.

In the current Flex environment I have worked with, when we call a web service we get a single response corresponding to that web service, but how do we make a web service call that should keep listening to multiple responses?


Actually, the requirement is that when I send a request from the floppy side to the server side, the server side should start sending the response data how and when it will be processed. It can take several minutes to send a full response in one go based on the request, so the requirement is that the server must return data in small chunks for the UI to start processing and displaying the response.

I was considering whether we can send a remote object or web service request to the server and there, on the server, it starts sending data back to the client ..... Blaze DS seems to be an option, but in this case the server starts broadcasting, and the client is listening to this broadcast, so it does not seem that efficient in my requirements, and furthermore, I doubt the server will push unique data to the respective clients in a scenario where multiple users are making requests

Any suggestion would be much appreciated.

I read somewhere that in a webservice using axis or xsf, a web service request can return multiple responses, in which case the flex client will listen for a response after the first response?

+2


a source to share





All Articles