如何让构建自动更新 Flex 中的 Web 服务引用?
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,您无法在构建时更新 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.