如何在每台PC上安装客户端来创建/访问WCF Web服务 [英] How do I create/access a WCF web service with having to install a client on every PC

查看:86
本文介绍了如何在每台PC上安装客户端来创建/访问WCF Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

是否可以创建一个可以从未安装客户端的PC /笔记本电脑访问的WCF Web服务?我正在考虑可以为1000个用户提供的服务。在这些笔记本电脑上安装一个客户端将是一项重要的工作,并将它们全部保留在最新的客户端版本上,这是一项更加困难的任务。任何建议欢迎。



问候

Pat

Hello,
is it possible to create a WCF web service that can be accessed from PC's / laptops which do not have a client installed ? I'm thinking about a service that could be available to 1000 users. Installing a client on each of these laptops would be a major exercise and keeping them all on the latest client version an even more diffucult task. Any advise welcome.

regards
Pat

推荐答案

没有解决传统客户端系统安装问题的方法。



您可以使用点击一次部署 [ ^ ]在客户端计算机上自动安装应用程序更新。



或者,你可以创建一个网页应用程序并将其托管在相同(或不同)的服务器上。

这个网页应该能够与WCF服务对话。



你需要做的就是分享这个网址您的客户。
There is no way to work around the traditional client system install problem.

You could use Click once deployment[^] to automatically install application updates on your client machines.

Alternately, you could create a web page application and host it on the same (or on a different) server.
This web page should be able to talk to the WCF service.

All you would then need to do is to share this url with your customers.


猜猜是什么,而不是发送需要进一步更新的软件应用程序包(如您所述),为什么不将Web浏览器用作客户端?创建ASP.NET Web应用程序作为该WCF应用程序的客户端。



ASP.NET Web应用程序将充当客户端,用户可以使用其Web浏览器来使用服务。无论是否更新浏览器,都不会给用户带来任何不良的用户体验。而且您只需要维护一个单独的项目,即Web应用程序。此项目也会在您发布后立即生效;您的用户不必担心重新安装软件包。



此外,使用Web应用程序将使您拥有跨平台的受众,因为每个设备和平台都提供Web浏览器。



如果您对此感兴趣,请阅读本指南以开始使用:创建一个Web服务,由连接的设备通过Internet使用 [ ^ ]
Guess what, instead of sending a package of software application, which needs further updates (as you mention), why don't you use the web browsers as a client? Create an ASP.NET web application as a client for that WCF application.

The ASP.NET web application will act as the client and users can consume the services using their web browser. Whether they update their browsers or not, would not cause any bad UX for the users. And you will only have to maintain that one single project, the web application. Also the project will be live as soon as you publish it; your users won't have to take the pain of re-installing the package.

Also, using web application will enable you to have cross-platform audience, because a web browser is available on every device and platform.

If this interests you, read this guide to get started: Creating a Web Service to be consumed by connected Devices via Internet[^]


谢谢伙计们快速反应。我对Afzaal的解决方案特别感兴趣。我可以问,在这种类型的解决方案中,WCF服务和Web应用程序(客户端与Web服务交谈)都驻留在服务器上吗?



问候

Pat
thanks guys for the quick response. I am particularly interested in Afzaal's solution. Can I ask, in this type of solution do the WCF service and the web application (Client talking to web service) both reside on the server ?

regards
Pat


这篇关于如何在每台PC上安装客户端来创建/访问WCF Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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