English 中文(简体)
• 如何消耗在遥远机器上的轮椅?
原标题:How to consume a wcf service hosted on a remote machine?
  • 时间:2010-09-24 09:36:02
  •  标签:
  • wcf

Hi All I have written a wcf service and hosted it on windows service. This windows service is started and running on a machine say A . Now I wanted to write a client application on another machine say B and wanted to consume the wcf servie on machine A . For this when I tried to add Service reference, I have given the endpoint address of the wcf service on machine A which is "http://localhost:8733/Design_Time_Addresses/NebulaDataModelService/Service1/".

但是,不能添加这一错误,即“不能建立联系......”。

谁能告诉我,我应如何确定轮椅的终点地址,以便客户能够从不同的机器中消费。

预 收

最佳回答

通常,你不需要与服务器上的终端添加物做任何特殊的事情,才能在客户中消费。

问题可能是:

  • wrong url (is it WCF 4? otherwise you probably need to specify the .svc file at the end of your service) -> change the url to include the .svc file at the end (e.g. Service1.svc)
  • firewall on machine A is blocking port 8733 (if you get an error with actively refused... in it, this could be the case)
  • easiest way to test this in a browser is by adding ?wsdl at the end of your url, if that works and show you an xml file, the service is reachable
问题回答

暂无回答




相关问题
WCF DataMember Serializing questions

Ok, so I was part way through the long winded process of creating DTOs for sending my model over the wire and I don t feel like I m going down the right route. My issue is that most of the entities ...

Access WCF service on same server

I have a .NET website with a WCF service. How do I access the current operations context of my service? One possible work around is to just make a call to the service within the app...but that seems ...

WCF binding error

So I got into work early today and got the latest from source control. When I try to launch our ASP.NET application, I get this exception: "The binding at system.serviceModel/bindings/wsHttpBinding ...

The service operation requires a transaction to be flowed

I am facing strange issue with our WCF service. The same code was working fine until recently we added more OperationContracts(Web Methods). We have common 3 tier architecture. DAL (WCF) BLL Web ...

热门标签