如何在另一台计算机上调用WCF服务 [英] how to call WCF service on another computer
本文介绍了如何在另一台计算机上调用WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hy
我在pc1(服务器)上有一个WCF服务。
我想把它称为pc2(客户端)项目中的一个用途。
我该怎么办?
Hy
I have a WCF service on pc1 (server) .
I want to call it an use in project on pc2 (client) .
How can I this ?
推荐答案
显然你可以在VS的帮助下创建一个代理,请阅读:
http://en.csharp-online.net/WCF_Essentials%E2%80%94Generating_the_Proxy [ ^ ]
或者这个
[ ^ ]
或者你甚至可以摆脱VS自动生成的代理并手动创建它。
Obviously you might to create a proxy with help of VS , read this:
http://en.csharp-online.net/WCF_Essentials%E2%80%94Generating_the_Proxy[^]
or this
How To Create A WCF Client Proxy Without Having a Deployed WCF Service[^]
Or you even can get rid of VS auto generated proxy and create it manually.
这篇关于如何在另一台计算机上调用WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文