【发布时间】:2016-03-24 14:14:00
【问题描述】:
我的 C# Web 应用程序应该调用第 3 方提供的 Web 服务。只有在运行时检测到提供程序时才能知道调用哪个 Web 服务。 例如:
Supplier #1 => client.ReceiveOrder(string orderNumber)
Supplier #2 => client.OrderReceiver(int OrderId)
Supplier #3 => client.GetOrderFromOutsideWorld(int OrderId, string OrderNumber)
所以基本上只有在收到订单后,应用程序才会知道要调用什么客户端以及公开什么方法。
关于如何实现这一点的任何提示?要遵循的最佳做法?
提前非常感谢!
【问题讨论】: