无法从Azure WebSite访问Web服务

时间:2015-03-18 01:37:29

标签: web-services wcf azure

我在Azure网站上托管了一个网站。我正在尝试连接到外部Web服务,并收到消息:

  

https://myexternalservice.com/ws/

没有收听端点

我可以在本地运行,并且连接没有问题,但只有Azure问题。

我当前的绑定是basicHttpBinding定义为

<bindings>
  <basicHttpBinding>
    <binding name="myBinding" maxReceivedMessageSize="20000000" maxBufferSize="20000000" maxBufferPoolSize="20000000" openTimeout="00:10:00"
             closeTimeout="00:10:00"
             sendTimeout="00:10:00"
             receiveTimeout="00:10:00">
      <readerQuotas maxDepth="32" maxArrayLength="200000000" maxStringContentLength="200000000" />
      <security mode="Transport" />
    </binding>
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="https://myexternalservice.com/ws" binding="basicHttpBinding" behaviorConfiguration="" bindingConfiguration="myBinding" contract="MyContract" name="MyEndpointName" />
</client>

我想假设这是某种内部负载平衡阻止我访问这个外部地址吗?

希望有人可以提供帮助

修改 好的,我已经尝试进入调试控制台(即mysite.scm.azurewebsites.net)并打开CMD窗口。我尝试过以下方法:

nslookup myexternalservice.com

并获得以下内容:

  

服务器:未知   地址:10.20.201.9

对于我来说,这看起来完全是一个Azure问题。其他人遇到类似的问题吗?

与此同时,我不情愿地通过端点地址更新直接绑定到IP地址,这已经奏效,但不是一个可行的解决方案。任何帮助将不胜感激。

0 个答案:

没有答案
相关问题