如何让构建自动更新 Flex 中的 Web 服务引用?

发布于 2024-07-06 14:58:53 字数 219 浏览 3 评论 0原文

在 FlexBuilder3 中,我可以转到“数据/管理 Web 服务...”,选择一个 Web 服务,然后单击“更新”以确保我的代码和服务器同步。 如何自动执行此操作,以便每次构建时都会重新生成自动生成的 Web 服务代码?

如果服务器接口在开发过程中发生了变化,但我的代码没有变化,那么它无论如何都不会工作——我宁愿有一个编译错误,也不愿有一个运行时错误,我必须追踪到更改后的 Web 服务接口。

From within FlexBuilder3, I can go to "Data/Manage Web Services..." select a web service, and click "Update" to ensure that my code and the server are in sync. How do I automate this so that each time I build, the automatically generated web service code is regenerated?

If the server interface changes during development but my code doesn't, it won't work anyway - I'd rather have a compilation error than a runtime error I had to track down to a changed web service interface.

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

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

发布评论

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

评论(1

深居我梦 2024-07-13 14:58:53

不幸的是,您无法在构建时更新 Web 服务。 更新是向导的一部分,并不作为按需调用的单独操作来实现。

我的一个建议是进入项目属性并在构建面板中添加一个程序作为新的构建器。 您必须创建此程序,在每次构建项目时检查 WSDL 文件是否未更改。 它有点复杂,但如果您正在开发一个依赖于正在大力开发的 Web 服务的项目,那么它可能会节省您大量时间。

Unfortunately you can not update a web service at build time. The update is part of the wizard and is not implemented as a separate action to be called on demand.

One suggestion I have is to go in the project properties and inside the Build panel add as a new builder a program. You will have to create this program that checks each time the project is build that the WSDL file did not change. It is a little bit complicated but if you are working on a project that relies on a web service that is under heavy development it might save you a lot of time.

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