angularjs - Retrieve/push many responses to jQuery from Web API -
been trying google , see if there solution problem, haven't found solution.
this current design.
- upload .xml file webapi server jquery.
- process xml file , write database through custom made class library.
- every entry in xml validated , written database through library.
- after 1 entry written callback in web api invoked (receipts) , stored in array.
- when every entry finished, receipts sent web api client json.
my problem xml can have many thousands entries , take long time process. i'm wondering if it's possible return/push response (receipt) every time callback in web api called angular/jquery can populate view every finished entry. now, $http-request can receive 1 response, , that's when processed , done.
you can use polling, i.e. ask in regular intervals check if there new data available, or use signalr, technology allows notify client (browser) server.
Comments
Post a Comment