在.net 2.0 winform中使用wcf [英] consuming wcf in .net 2.0 winform

查看:109
本文介绍了在.net 2.0 winform中使用wcf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在.Net 2.0 Winform中使用WCF服务.请注意,客户端上没有IIS.一个例子或一个样本会很棒.

How can we consume WCF service in .Net 2.0 Winform. Please note that we don't have IIS on the client. an example or a sample would be great.

推荐答案

这完全取决于WCF端点的配置方式.

It all depends on how your WCF endpoints are configured.

如果您正在通过HTTP使用基于SOAP的WCF服务,则应该能够从.NET 2.0 WinForms应用程序中简单地添加服务引用,然后就可以使用了(我建议这样做).

If you're using SOAP based WCF Services over HTTP, you should be able to simply add a Service Reference from your .NET 2.0 WinForms application and be on your way (which is what I would suggest doing).

如果不是这种情况,则必须提供更多有关您要使用WCF服务做什么的详细信息.

If that's not the case, you'll have to provide a little more detail about what you're trying to do with your WCF Services.

这篇关于在.net 2.0 winform中使用wcf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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