Axapta 2009 WCF 服务

发布于 2024-08-27 15:48:27 字数 314 浏览 6 评论 0原文

我正在尝试添加对 axapta 2009 的服务引用。一切运行良好,它是一个简单的 Web 方法(外部 Web 服务),在服务器层上执行(必要的,否则 clr 互操作错误)

但我遇到了以下问题:

  1. 是否可以以一种或另一种方式关闭代理?因为该选项在 AX 中生成的服务对象中不可用(只有 webmethods 和 tostring)。
  2. 在某个时刻,我遇到了一个处于故障状态的服务。通常,您会再次创建服务对象,但这并没有解决任何问题,直到我重新启动 AOS。这是正常行为吗?服务对象是在服务器端缓存的还是类似的东西?

提前谢谢。

I am trying to add a service reference to axapta 2009. All is working well, its a simple web method(external webservice) that gets executed on the server tier(necessary, otherwise clr interop error)

But I've ran into the following problems :

  1. is it possible to close the proxy one way or another? Because this option is not available in the generated service object in AX (only the webmethods and a tostring).
  2. at a certain moment, i ran into a service with faulted state. Normally, you create the service object again, but this didnt solve anything, until i restarted the AOS. Is this normal behaviour? Is the service object cached or something like that on server side?

Thx in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

半暖夏伤 2024-09-03 15:48:27

这是由于 WCF 服务抛出故障,可能是未处理的故障。

您可以访问 WCF 服务吗?如果是这样,请查看此链接: 如何防止 WCF 服务进入故障状态?

尝试捕获 WCF 服务中的任何异常并记录它们。

不幸的是,Axe 无法捕获 WCF 抛出的故障异常,因此您将被限制使用封装返回消息的对象来修改 WCF 服务,以及方法处理成功或抛出异常时的标志。

是的,出现故障的 WCF 服务保持故障状态是正常行为。您可能必须重新启动 IIS 服务或仅回收 WCF 服务正在其下运行的 AppPooll。

This is due to the fact that the WCF service is throwing Faults, probably unhandled faults.

Do you have access to the WCF Service? If so then have a look at this link: How do I prevent a WCF service from enter a faulted state?

Try to catch any exceptions within the WCF Service and log them.

Unfortunately Ax cannot catch FaultExceptions thrown by WCF so you will be limited to modify the WCF Service with an object encapsulating the return message, along with a flag if the method processed successfully or if an exception was thrown.

Yes it is normal behavior for a faulted WCF service to stay in the Faulted state. You may have to restart the IIS service or just recycle the AppPooll the WCF Service is running under.

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