在 Flex Mate 框架中使用 Web 服务

发布于 2024-08-09 16:02:03 字数 957 浏览 4 评论 0原文

我目前正在尝试使用 Mate 的“调用标签”来调用我的 Web 服务并将 WS 响应委托给我的故障/结果处理程序。 我想使用由 Flex Builder 提供的生成的代理,而不是普通的 ; 标签。

实际上,我使用了几种技术失败了:

  1. 不适用于生成的代理。
  2. 需要一些复杂的 successType,我无法使用 WS 调用。定义事件对我来说似乎是多余的。我希望它简单易读,代码会被除我之外的其他人所感动!
  3. 无法使用实例,也无法处理代理的 AsyncToken
  4. 乍一看还不错。它调用服务,但不会触发有效的结果事件(无限忙碌光标)。尽管我可以成功绑定到 WS 代理的 XYZ_lastResult ,并且 WS 调用会导致从 WS 后端获取有效数据,但 不会被执行。对于 DelegateInvoker 有一些解决方案可以更改生成的代理中的代码,但我绝对不想这样做!

所以这是我的问题:是否有一种简单(!)的方法将默认的Flexbuilder生成的代理Mate调用标签一起使用?

I am currently trying to use the "Invocation tags" of Mate to call my web services and delegate the WS-responses to my fault/result handlers.
I want to use the generated proxies, provided by the Flex Builder, and not the plain <WebService> or <WebServiceInvoker> tags.

I actually failed using several techniques:

  1. <WebServiceInvoker> does not work with the generated proxies.
  2. <AsyncMethodInvoker> needs some complicated successType that I could not get to work with the WS-calls. And defining the events seems redundant to me. I want it simple and easy to read, the code will be touched by other people than me!
  3. <MethodInvoker> can't use instances, and it also can't handle the proxies' AsyncToken
  4. <DelegateInvoker> Looked fine at first. It calls the service but doesn't fire valid result events (infinite busy cursor). Even though i can successfully bind to the XYZ_lastResult of the WS-proxies, and a WS-call results in getting valid data from the WS-backend, the <faultHandlers> and <resulthandlers> are not executed. There is some solution for the DelegateInvoker that changes code in the generated proxies, which i definately do not want to do!

So here is my question: Is there a simple(!) way of using default Flexbuilder generated proxies with the Mate Invocation tags?

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

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

发布评论

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

评论(1

夏了南城 2024-08-16 16:02:03

看来你的要求对于Mate来说并不少见。在他们的论坛中查看这几个主题:

http://mate.asfusion.com /forums/topic.php?id=424

http://mate .asfusion.com/forums/topic.php?id=421

解决方案是修改自动生成的代码的一些位...这在某种程度上破坏了使用代码生成的全部意义。

It appears that your request is not that uncommon to Mate. Check out this couple of threads in their forum:

http://mate.asfusion.com/forums/topic.php?id=424

http://mate.asfusion.com/forums/topic.php?id=421

The solution is to modify some bits of the auto-generated code... which in a way ruins the whole point of using code generation.

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