Web服务错误"没有终点在听..."防火墙关注 [英] Web Service Error "There was no endpoint listening at..." Firewall Concern
问题描述
所以我有一个Web服务的服务引用的作品本地主机,并可以从它的生产地址ping通,但我不能得到通过生产中的服务引用调用访问它。我相信这个问题是我的防火墙。我每个都有自己专用的IP地址在同一台服务器上的两个网站。我想打电话给从第一个网站的第二个网站上的Web服务。如果我打开我的生产服务器上的浏览器,我不能导航要么网站。
错误描述:没有任何端点在http听:// [209.112.245.103] /Services/OfferService.asmx是可以接受的消息。这通常是由一个不正确的地址或SOAP动作引起的。见的InnerException,如果present,了解更多信息。
内部异常:无法连接到远程服务器
主叫网站是在同一台服务器上(当然不同的IP),并通过调用服务引用的Web服务:
昏暗offerService作为新ServiceReferenceOffer.OfferServiceSoapClient(OfferServiceSoap)offerService.BroadcastOfferChange(offer.PropertyID,offer.OfferID,offer.ResultResponse)
和我的web.config包含以下服务端点信息:
< system.serviceModel>
<&绑定GT;
<&basicHttpBinding的GT;
<绑定名称=OfferServiceSoap/>
<绑定名称=ConversationServiceSoap/>
< / basicHttpBinding的>
< customBinding>
<绑定名称=OfferServiceSoap12>
< textMessageEncoding messageVersion =SOAP12/>
< httpTransport />
< /&结合GT;
<绑定名称=ConversationServiceSoap12>
< textMessageEncoding messageVersion =SOAP12/>
< httpTransport />
< /&结合GT;
< / customBinding>
< /绑定>
<客户端>
<端点地址=http://209.112.245.103/Services/ConversationService.asmx
绑定=basicHttpBinding的bindingConfiguration =ConversationServiceSoap
合同=ServiceReferenceConversation.ConversationServiceSoap
NAME =ConversationServiceSoap/>
<端点地址=http://209.112.245.103/Services/ConversationService.asmx
绑定=customBindingbindingConfiguration =ConversationServiceSoap12
合同=ServiceReferenceConversation.ConversationServiceSoap
NAME =ConversationServiceSoap12/>
<端点地址=http://209.112.245.103/Services/OfferService.asmx
绑定=basicHttpBinding的bindingConfiguration =OfferServiceSoap
合同=ServiceReferenceOffer.OfferServiceSoapNAME =OfferServiceSoap/>
<端点地址=http://209.112.245.103/Services/OfferService.asmx
绑定=customBindingbindingConfiguration =OfferServiceSoap12
合同=ServiceReferenceOffer.OfferServiceSoapNAME =OfferServiceSoap12/>
< /客户>
< /system.serviceModel>
您配置是否正确。我刚刚访问您的服务器,一切正常(所以它不是code相关)。
由于该网站和网站都在同一个服务器,则可能需要使用不同的IP或地址来访问WCF(请尝试用127.0.0.1,本地主机或内部服务器IP)。
So I have a web service service reference that works localhost and can be pinged from its production url but I can't get access to it via the Service Reference call in production. I believe the issue is my firewall . I have two websites on the same server each with their own dedicated IP address. I am trying to call the web service on the second website from the first website. If I open a browser on my production server I cannot navigate to either website.
Error Description:There was no endpoint listening at http://[209.112.245.103]/Services/OfferService.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Inner Exception:Unable to connect to the remote server
The calling website is on the same server (different IP of course) and is calling the web service via a service reference:
Dim offerService As New ServiceReferenceOffer.OfferServiceSoapClient("OfferServiceSoap")
offerService.BroadcastOfferChange(offer.PropertyID, offer.OfferID, offer.ResultResponse)
And my web.config contains the following service endpoint information:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="OfferServiceSoap" />
<binding name="ConversationServiceSoap" />
</basicHttpBinding>
<customBinding>
<binding name="OfferServiceSoap12">
<textMessageEncoding messageVersion="Soap12" />
<httpTransport />
</binding>
<binding name="ConversationServiceSoap12">
<textMessageEncoding messageVersion="Soap12" />
<httpTransport />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://209.112.245.103/Services/ConversationService.asmx"
binding="basicHttpBinding" bindingConfiguration="ConversationServiceSoap"
contract="ServiceReferenceConversation.ConversationServiceSoap"
name="ConversationServiceSoap" />
<endpoint address="http://209.112.245.103/Services/ConversationService.asmx"
binding="customBinding" bindingConfiguration="ConversationServiceSoap12"
contract="ServiceReferenceConversation.ConversationServiceSoap"
name="ConversationServiceSoap12" />
<endpoint address="http://209.112.245.103/Services/OfferService.asmx"
binding="basicHttpBinding" bindingConfiguration="OfferServiceSoap"
contract="ServiceReferenceOffer.OfferServiceSoap" name="OfferServiceSoap" />
<endpoint address="http://209.112.245.103/Services/OfferService.asmx"
binding="customBinding" bindingConfiguration="OfferServiceSoap12"
contract="ServiceReferenceOffer.OfferServiceSoap" name="OfferServiceSoap12" />
</client>
</system.serviceModel>
Your configurations are correct. I just accessed your server and everything went fine (so it's not code related).
Since the site and the website are in the same server, you may need to use a different IP or address to access the wcf (try 127.0.0.1, localhost or an internal server ip).
这篇关于Web服务错误&QUOT;没有终点在听...&QUOT;防火墙关注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!