WCF客户端和服务器 [英] WCF client and server

查看:164
本文介绍了WCF客户端和服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要跟一个WCF服务多个客户端。 。WCF服务还必须能够连接到用户还中的任一项

I need multiple clients that talk to a WCF service. The WCF service also must be able to connect to any one of the clients also.

所以 - 这听起来像服务器和客户端需要有既一个WCF服务器和客户端内置到每个人。

So - it sounds like the server and the clients need to have both a WCF server and client built into each one.

这是正确的或者是有一些方法来做到这一点?

Is this correct or is there some way to do this?

我是看着NetPeerTcpBinding,但是这已经过时了。为了公平起见,我不知道这是一个有效的解决方案,无论是

I was looking at NetPeerTcpBinding, but that is obsolete. To be fair I'm not sure if that is a valid solution either.

背景:

  • I plan to have a Windows service installed on hundreds of machines in our network with a WCF service and a WCF client built in.
  • I will have one Windows service installed on a server with a WCF service and a client built in.
  • I will have a Windows Forms application
  • I will have a database

在网络上的客户端将连接到以在服务器上运行的服务,以插入在数据库上的一些信息

The clients on the network will connect to the service running on the server in order to insert some information on the database.

用户将使用Windows窗体应用程序连接到服务器,此Windows服务的Windows服务将连接到工厂车间的相关客户端(允许文件和文件夹)的远程浏览。

The user will use the Windows Forms application to connect to the Windows service on the server and this Windows service will connect to the relevant client on the factory floor (to allow remote browsing of files and folders).

因此,我认为在地板上,都需要一个WCF cleint和服务内置在服务器的机器。

Hence I believe the machines on the floor and the server both require a WCF cleint and service built in.

推荐答案

使用wsDualHttpBinding如果你希望你的服务与客户沟通。

Use wsDualHttpBinding if you want your service communicate with your clients.

阅读的 WS双HTTP 的。

Read WS Dual HTTP.

这篇关于WCF客户端和服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆