Can a json request to a web service return replies in a stream? Or does it have to come back as one individual json dataset?
I'm working on an image upload script, and when I submit the image to the webservice, I have a series of operations that need to take place. As the operations finish, I'd like to return a json dataset to the browser that tells the client the operation has finished.
So the browser/client could get an initial reply saying the image has been uploaded, and now it's working on operation 1. When operation 1 is finished, the browser/client gets an updated json dataset pushed to it that tells the browser operation 1 is finished and operation 2 is in progress. rinse repeat. So a single submittion to a webservice would end up generating several returned json datasets that come in sequentially over a period of time.
I'm working on an image upload script, and when I submit the image to the webservice, I have a series of operations that need to take place. As the operations finish, I'd like to return a json dataset to the browser that tells the client the operation has finished.
So the browser/client could get an initial reply saying the image has been uploaded, and now it's working on operation 1. When operation 1 is finished, the browser/client gets an updated json dataset pushed to it that tells the browser operation 1 is finished and operation 2 is in progress. rinse repeat. So a single submittion to a webservice would end up generating several returned json datasets that come in sequentially over a period of time.
