在 Flex Mate 框架中使用 Web 服务
我目前正在尝试使用 Mate 的“调用标签”来调用我的 Web 服务并将 WS 响应委托给我的故障/结果处理程序。 我想使用由 Flex Builder 提供的生成的代理,而不是普通的
或
标签。
实际上,我使用了几种技术失败了:
不适用于生成的代理。
需要一些复杂的 successType,我无法使用 WS 调用。定义事件对我来说似乎是多余的。我希望它简单易读,代码会被除我之外的其他人所感动!
无法使用实例,也无法处理代理的AsyncToken
乍一看还不错。它调用服务,但不会触发有效的结果事件(无限忙碌光标)。尽管我可以成功绑定到 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:
<WebServiceInvoker>
does not work with the generated proxies.<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!<MethodInvoker>
can't use instances, and it also can't handle the proxies'AsyncToken
<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 theXYZ_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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来你的要求对于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.