通过局域网访问WCF服务 [英] Accessing WCF service through LAN

查看:109
本文介绍了通过局域网访问WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


有人可以告诉我通过LAN连接访问WCF服务的步骤吗?

我已经创建了WCF服务,而我的朋友正在创建一个网站来使用它.我们无法将服务与网站连接.

对于不得不提的一件事.网站和服务位于通过LAN相互连接的2个不同的系统中.

请咨询

Hi,
Can anybody please tell me steps to access a WCF service through LAN connetion??

I''ve created a WCF Service and my friend is creating a website to consume it. we''re not able to connect the service with the site..

For got to mention one thing. The website and the service are in 2 different systems connected to each other through LAN.

Please advice

推荐答案

您做错了.

我知道,我的回答似乎含糊不清,甚至有些晦涩,但是答案的质量取决于问题的质量.
You''re doing it wrong.

I know, my answer seems vague, or even obtuse, but the quality of the answer is dictated by the quality of the question.


DieOnTime 写道:我已经创建了WCF服务
DieOnTime wrote: I''ve created a WCF Service



当您提出问题时,不要对我们甚至对自己撒谎都是非常有用的.不,您没有创建任何WCF服务.真正创建它们的人总是使用示例客户端来完成此任务,即使在该服务实现任何功能之前,该示例客户端都已连接.

您可以找到数百万个代码示例.例如,请参见:
Windows Communication Foundation(WCF)概述 [ Windows Communication Foundation快速入门-多重绑定VS2010 [实现基本的Hello World WCF服务 [逐步使用wpf + wcf + wf编写"Hello World"程序 [^ ],
Windows Communcation Foundation-简单示例,分步进行 [初学者WCF [



When you ask a question, it would be extremely useful not to lie to us and perhaps to yourself. No, you did not create any WCF Service. People who really create them always do it with the sample client which is connected even before the service implement any functionality.

You can find millions of code samples. For example, see:
A Windows Communication Foundation (WCF) Overview[^],
Windows Communication Foundation QuickStart - Multiple Binding VS2010[^],
Implementing a Basic Hello World WCF Service[^],
Writing a ''Hello World'' program using wpf+wcf+wf step by step[^],
Windows Communcation Foundation - Simple Example, Step by Step[^],
WCF for Beginners[^].

—SA


这篇关于通过局域网访问WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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