在 FlexBuilder 中管理 Web 服务 - 管理器如何工作?

发布于 2024-07-04 08:40:56 字数 188 浏览 3 评论 0原文

在 FlexBuilder 3 中,“数据”菜单下有两个项目用于导入和管理 Web 服务。 导入 Web 服务后,我可以使用管理选项对其进行更新。 然而,Web 服务在导入后似乎就消失了。 然而,管理器确实认识到导入了某个 WSDL URL,并拒绝对其执行任何操作。

管理器如何知道这一点,以及如何让它刷新某个 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.

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

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

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

发布评论

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

评论(1

友欢 2024-07-11 08:40:56

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

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

"import com.example.*;"

要在 mxml 中使用包含 .as 文件的 Web 服务,请使用:

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

要刷新生成的代理类,使用最新的 WSDL,只需打开管理器并选择“更新”即可。

另外,我发现这篇文章对于使用 Web 服务非常有用。

我希望这有帮助,这个问题对这个问题有点模糊。

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.

To consume these webservices in ActionScript use the statement:

"import com.example.*;"

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

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

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.

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