[英]How to access client application from web application with service application
I would like to write a Web Application that can interact with 3D Cad program for our company. 我想为我们公司编写一个可以与3D Cad程序交互的Web应用程序。 So I was thinking that I would create a program that would be locally installed on the client machines which would send and receive data back and forth from Client App to Web App. 因此,我在考虑要创建一个程序,该程序将在本地安装在客户端计算机上,以从客户端应用程序到Web应用程序来回收发数据。 I would like to use xml for moving the data back and forth too. 我也想使用xml来回移动数据。 Does anyone suggestions or can this even be done? 有没有人建议,甚至可以做到这一点?
In this case you need 2 way communication
between app and service. 在这种情况下,您需要在应用程序和服务之间进行2 way communication
。 and for solving that there are two way: 解决方法有两种:
two service
and they must be client of each other (Hard way) 使用two service
并且它们必须是彼此的客户端(硬方法) Duplex Services
. 使用Duplex Services
。 (you can use WCF-Duplex services - it's not simple) (您可以使用WCF双工 服务 -这并不简单) in this case you must handle too many issue's.(take look at this ) 在这种情况下,您必须处理过多的问题。(请看此 )
As example: 例如:
app need to notify self on your service and service save address of active client's. 应用需要在您的服务和活动客户端的服务保存地址上通知自己。 so every time service want's to call one of client, service must find client's address in active-client's and then call that. 因此,每次服务要调用一个客户端时,服务都必须在活动客户端中找到客户端的地址,然后再调用该地址。
Let me know if this help you. 让我知道这是否对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.