【问题标题】:Need To Link OData Service with other OData Service需要将 OData 服务与其他 OData 服务链接
【发布时间】:2014-03-03 10:38:01
【问题描述】:

我有这种情况。我有两台服务器和一台客户端数据库服务器:

  1. 服务器 1

  2. 服务器 2

  3. 客户端服务器

client server 只能看到 server 2,server 2 只能看到 server 1,server 1 只能看到 DB Server

客户端服务器需要连接到 server1 内的 odata 服务,所以我需要在服务器 2 内创建新的 odata,从 server1 的 odata 读取

public class WcfDataService1 : DataService<Remote odata >
{
   public static void InitializeService(IDataServiceConfiguration config)
   {
      config.SetEntitySetAccessRule("*", EntitySetRights.All);
   }
}

实现这个场景最简单的方法是什么?

【问题讨论】:

    标签: c# asp.net odata wcf-data-services


    【解决方案1】:

    您可以在服务器 2 上设置代理。代理接受来自客户端服务器的请求并将它们转发到服务器 1。

    如果你使用的是 IIS,你可以参考这个: https://serverfault.com/questions/47537/can-iis-be-configure-to-forward-request-to-another-web-server

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-16
      • 1970-01-01
      • 2023-01-31
      • 1970-01-01
      • 2011-11-20
      • 2014-05-04
      • 1970-01-01
      • 2011-10-19
      相关资源
      最近更新 更多