consuming wcf in .net 2.0 winform

安稳与你 提交于 2019-12-25 03:23:02

问题


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.


回答1:


It all depends on how your WCF endpoints are configured.

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).

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.




回答2:


You can host your WCF service in a Windows Service as per this article. In that case, it will listen on the HTTP protocol on any port you configure.



来源:https://stackoverflow.com/questions/3735915/consuming-wcf-in-net-2-0-winform

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!