WCF 服务作为客户端还是作为服务?

发布于 2025-01-07 09:11:43 字数 488 浏览 1 评论 0原文

我必须创建一个 WCF 4.0 (VS 2010) 服务 (MyWCFService),它既是服务(从 MS Dynamics AX 使用)又是客户端(将使用一些外部 XML Web 服务)。

因此基本上流程是:

  1. MS Dynamics AX 将调用 MyWCFService

  2. MyWCFService 调用外部 XML Web 服务

  3. 外部 XML Web服务将结果返回到 MyWCFService

  4. 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:

  1. MS Dynamics AX will call MyWCFService

  2. MyWCFService call external XML web service

  3. External XML web service return result to MyWCFService

  4. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荆棘i 2025-01-14 09:11:43

您在这里需要注意的主要事情是安全性和日志记录。

  • 您将在什么安全上下文中访问 MS Dynamics AX 服务
  • 如何控制谁可以在服务上执行哪些操作
  • 您如何跟踪用户所做的事情

最坏的情况是开放的外部 Web 服务,使用管理员用户访问 MS Dynamics。以便外部未经授权的用户可以完全控制您的后端系统。

The main thing that you need to watch out for here is the security and logging.

  • What is the security context in which you will be accessing the MS Dynamics AX service with
  • How do you control who can do what on the service
  • How do you keep track of what users have done

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文