简体   繁体   English

可靠性和WCF

[英]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. 所以这是场景...我有一个共享点内容类型,该内容类型调用wcf服务来更新另一个数据库中的数据。 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. 此过程在签出期间发生,并且当我在等待调用完成时可能遇到SP端故障时,服务端可能会成功。 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? 您是否考虑过使用wsDualHttpBinding并在处理完成后让服务执行回调? You could use AJAX to call the WCF service which would perform the call in the background asynchronously. 您可以使用AJAX调用WCF服务,该服务将在后台异步执行调用。 Then when the service is finished, it can callback over the dual binding and let the SP application know it's finished. 然后,当服务完成时,它可以回调双重绑定,并让SP应用程序知道它已完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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