与在同一台计算机上运行的Windows应用程序通信WCF服务 [英] communicate a wcf service with a windows application running on same machine

查看:89
本文介绍了与在同一台计算机上运行的Windows应用程序通信WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过WCF服务与同一台计算机上运行的Windows应用程序进行通信.我无法破解它的数据层.我需要可以运行该应用程序并从中获取数据的服务.


对此的任何想法或想法都将受到高度赞赏..

how to make communication from WCF service with a windows application running on same machine. I cant crack the data layer of it. I need service that should run the application and fetch the data from it.


Any idea or thoughts around this are highly appreciated..

推荐答案

只需创建对该服务的服务引用,然后运行Windows应用程序即可访问该服务.如果将服务发布到计算机上的IIS,则可以得到更可靠的测试.我假设你们两个都在同一个解决方案中?您没有提供任何信息,因此我对您的问题投了2票.
Just create a service reference to the service and then run your windows application to access the service. You get a more reliable test of the servcie if you publish it to IIS on your machine. I assume you have both in the same solution? you did not provide any information on that and thus I gave you a 2 vote on your question.


这篇关于与在同一台计算机上运行的Windows应用程序通信WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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