简体   繁体   中英

Reliability and WCF

So here is the scenario... I have a sharepoint content type that calls a wcf service to update data in another database. The problem comes what happens if the call times out? This process happens during check out and while I may get a failure of the SP side while waiting for the call to finish, the service end may succeed. Any ideas on a better way to architect a solution?

Have you thought about using a wsDualHttpBinding and having the service perform a callback once the process is done? You could use AJAX to call the WCF service which would perform the call in the background asynchronously. Then when the service is finished, it can callback over the dual binding and let the SP application know it's finished.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM