WCF 服务作为客户端还是作为服务?
我必须创建一个 WCF 4.0 (VS 2010) 服务 (MyWCFService
),它既是服务(从 MS Dynamics AX 使用)又是客户端(将使用一些外部 XML Web 服务)。
因此基本上流程是:
MS Dynamics AX 将调用 MyWCFService
MyWCFService 调用外部 XML Web 服务
外部 XML Web服务将结果返回到 MyWCFService
MyWCFService 将结果返回到 MS Dynamics AX
对于这种情况是否有一些我应该注意的特殊考虑?
对于异步消费,我的 MyWCFService
客户端和服务本身是否应该进行异步调用?
您能给我指出一些审查/讨论这种“中间人”服务模式的文档吗?
谢谢!
I have to create a WCF 4.0 (VS 2010) service (MyWCFService
) which is both service (consumed from MS Dynamics AX) and client (will consume some external XML web service).
So basically the flow is:
MS Dynamics AX will call MyWCFService
MyWCFService call external XML web service
External XML web service return result to MyWCFService
MyWCFService return result to MS Dynamics AX
Are there some special consideration concerning this scenario which I should be aware of?
What about asynchronously consuming, should the client of my MyWCFService
and the service itself make asynchronously calls?
Can you point me to some documentation which review/discuss this “middle man” service pattern?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在这里需要注意的主要事情是安全性和日志记录。
最坏的情况是开放的外部 Web 服务,使用管理员用户访问 MS Dynamics。以便外部未经授权的用户可以完全控制您的后端系统。
The main thing that you need to watch out for here is the security and logging.
The worst case scenario is an open external web service, which accesses the MS Dynamics using an admin user. So that external unathorised users have full control of your backend system.