开发者

How to consume WCF on windows server 2000 OS?

Windows server 2000 does not support .NEt 3.5, so its not supporting WCF? We, lazy, did not consider this before creating WCF 开发者_Go百科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?

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


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.


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


IF the server providing the service isn't a Windows 2000, that you CAN consume a WCF in Windows 200 as it were a WebService.

Just configure the proper bindings and you're ready to go.


Edited to add

Take a look at MSDN.


I'm not aware of any way to run WCF without .NET 3.0. However, WSE 3.0 runs on the .NET 2.0 Framework and can be made to be wire-level compatible with WCF.

This page should help get you started. The main thing you have to do is use a customBinding and change the addressing mode in the binding configuration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜