如何为WCF服务器创建UI? [英] How do I create a UI for a WCF servie ?

查看:83
本文介绍了如何为WCF服务器创建UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要创建一个UI来监控我的WCF服务(在wsDualHttpBinding和NETTCP绑定上运行)。

Any建议?



附加说明:UI应该能够驱动WCF服务中的事件(对于我进行客户端调用以执行客户端方法的情况)。

Hi,

I need to create a UI to monitor my WCF services(running on wsDualHttpBinding and NETTCP binding).
Any suggestions ?

Additional Notes: The UI should be able to drive the events in the WCF service(for cases where i make client calls to execute client methods).

推荐答案

嗨eXterminatorrr!



一般来说,你应该能够进行这些活动:



*为服务创建客户端(或添加服务参考,然后客户端将自动创建)



*消费你的从GUI通过客户端的WCF服务。示例通过以下链接:创建要使用的WPF客户端WCF服务



您还可以使用以下选项:

创建用户界面以监控正在运行的Windows服务并与之交互 >


祝你好运!
Hi eXterminatorrr!

Generally speaking, you should be able to perform these activities :

* Create client for the service (or add service refference, then client will be created automatically)

* Consume your WCF service through client from GUI eg. example by this link : Create a WPF client to consume WCF service

You can also use the following option:
Creating a user interface for monitoring and interacting with a running windows service

Good luck!


您好eXterminatorr,这里有很多选择。 WPF,Silverlight,Windows窗体等。您必须根据您的要求选择最佳应用程序类型。



以下是一些有助于您找到最佳选择的链接申请类型:

在Silverlight中使用WCF服务 [ ^ ]

将WPF绑定到WCF [ ^ ]

快速而肮脏的WCF服务和客户端(使用WCF和Winforms) [ ^ ]



附加说明:客户端方法无法加入WCF(在服务器上)。



这是一个好的开始。
Hi eXterminatorr, well you have many options here. WPF, Silverlight, Windows Forms, etc. You must select the best application type based on your requirements.

Here are some links that will help to you to find the best application type for you:
Using WCF Service with Silverlight[^]
Binding WPF to a WCF[^]
A Quick and Dirty WCF Service and Client (Using WCF and Winforms)[^]

Additional Notes: A client method cannot be acceded by a WCF (on Server).

A good start from here.


这篇关于如何为WCF服务器创建UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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