Data Sync with WCF
Here is the scenario:
- Client sends a request to WCF Server to get product list.
- WCF Server retrieves product list and returns it to the Client.
- Client saves product list into the client's database. (Client and WCF Server distributed in different location, connect through internet.)
Problem is: during step 3, Client maybe save product list unsuccessfully.
So, is there any good way to let WCF Server know if the Client has downloaded and saved the product开发者_运维问答 list successfully.
No server doesn't know about the final state of the action performed by the client. For server the operation ends when it returns response to the transport channel. It is up to you as client's developer to handle any exception and call the service again if needed.
Btw. did you check MS Sync Framework? It does exactly what you describes and it supports WCF.
精彩评论