简体   繁体   English

如何使用服务应用程序从Web应用程序访问客户端应用程序

[英]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: 解决方法有两种:

  1. use two service and they must be client of each other (Hard way) 使用two service并且它们必须是彼此的客户端(硬方法)
  2. use 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.

相关问题 如何从客户端应用程序访问Windows服务上托管的Web服务? - How to access a Web Service hosted on a Windows Service from a client application? 如何从Web服务启动WPF应用程序? - How to start a WPF application from a web service? 从客户端应用程序中的Web服务发送的解析代码 - Parsing code send from Web service in client application 如何从应用程序访问Windows服务的属性 - How to access the property of windows service from application 当用户在代理后面时,从客户端应用程序访问WCF服务 - WCF service access from client application when user is behind proxy 将客户端应用程序名称获取到Web服务 - Get client application name to web service 如何使用Asp.net Web应用程序访问客户端计算机上安装的客户端应用程序(扫描仪或.exe) - how to access client application (Scanner or .exe) which are installed on client machine using Asp.net web application WCF服务从客户端应用程序获取数据并发送到Web应用程序(Asp.NET) - WCF Service Get Data From Client Application And Send to Web Application (Asp.NET) 需要客户端Web应用程序访问我编写的本地应用程序 - Need client side Web application to access local application I wrote 如何启用对Web服务中的应用程序变量的访问 - How do I enable access to Application variables inside a web service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM