如何使用WCF在Windows Server 2000操作系统? [英] How to consume WCF on windows server 2000 OS?

查看:94
本文介绍了如何使用WCF在Windows Server 2000操作系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows Server 2000不支持.NET 3.5,因此它不支持WCF?我们,懒惰,没有创建WCF应用程序(服务器,客户端,监听器等)之前考虑这一点。我的客户端控制台应用程序在编译3.5只是为了使用WCF。我可以重新编译的客户端应用框架2.0。要能够在Windows Server 2000上运行它,但如何我将要使用WCF?任何建议?周围的任何文字?

Windows server 2000 does not support .NEt 3.5, so its not supporting WCF? We, lazy, did not consider this before creating WCF application (Server, client, listener etc). My Client Console application is compiled in 3.5 just to consume WCF. I can recompile Client app to framework 2.0. to able to run it on Windows Server 2000. But how i am gonna consume WCF? Any suggestion? Any word around?

还是我真的要回去的Web服务(通过降低WCF应用程序)?

Or do i really have to go back to Web services (by dropping WCF app)?

推荐答案

只需使用 basicHttpBinding的为您服务,并使用它,你会消耗一个ASMX Web服务,即添加Web引用。 basicHttpBinding的应完全等同于ASMX Web服务。

Simply use the basicHttpBinding for your service, and consume it as you would have consumed an ASMX web service, i.e., "Add Web Reference". basicHttpBinding should be exactly equivalent to an ASMX Web Service.

您使用的休息的标签。这是WCF服务REST服务?这是一个很大的区别!

You used the "REST" tag. Is this WCF service a REST service? That's a big difference!

这篇关于如何使用WCF在Windows Server 2000操作系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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