在 FlexBuilder 中管理 Web 服务 - 管理器如何工作? [英] Managing web services in FlexBuilder - How does the manager work?

查看:25
本文介绍了在 FlexBuilder 中管理 Web 服务 - 管理器如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 FlexBuilder 3 中,数据"菜单下有两项用于导入和管理 Web 服务.导入网络服务后,我可以使用管理选项更新它.然而,webservices 在它们被导入后似乎消失了.然而,经理确实认识到某个 WSDL URL 已被导入并拒绝对其进行任何操作.

In FlexBuilder 3, there are two items under the 'Data' menu to import and manage web services. After importing a webservice, I can update it with the manage option. However, the webservices seems to disappear after they are imported. The manager does however recognize that a certain WSDL URL was imported and refuses to do anything with it.

经理如何知道这一点,以及如何让它刷新某个 WSDL URL?

How does the manager know this, and how can I make it refresh a certain WSDL URL?

推荐答案

在 flexbuilder 项目的 src 文件夹中,您应该会看到生成的类.例如,如果您使用管理器为 www.example.com 生成代理类,您应该会看到/com/example 文件夹,其中包含生成的代理类.

In your src folder of the flexbuilder project you should see the generated classes. For instance, if you use the manager to generate the proxy classes for www.example.com you should see the folders /com/example with the generated proxy classes inside.

要在 ActionScript 中使用这些 Web 服务,请使用以下语句:

To consume these webservices in ActionScript use the statement:

"import com.example.*;"

要使用 mxml 中的 webservice 包括 .as 文件,请使用:

To consume the webservice in mxml include the .as file using:

<mx:Script source="yourscriptname.as"/>

要刷新生成的代理类,使用最新的 WSDL,只需打开管理器并选择更新".

To refresh the generated proxy classes, consuming the latest WSDL, simply open the manager and select "update".

另外,我发现这篇文章对于消费网络非常有用服务.

Also, I found this article very useful for consuming web services.

我希望有帮助,这个问题对问题有点含糊.

I hope that helps, the question was kind of vague about the problem.

这篇关于在 FlexBuilder 中管理 Web 服务 - 管理器如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆