Apache Axis 1:WSDL2Java - 覆盖生成的源?
当针对最近更改的 wsdl 运行 org.apache.axis.wsdl.WSDL2Java (Axis 1) 时,会出现失败,因为某些源已经存在。有没有办法强制覆盖现有的类?我在 http://axis.apache.org/axis/java/ 上没有看到任何内容Reference.html 在这种情况下可以帮助我。
我正在寻找类似 -or 选项的东西,可以在 Axis 2 WSDL2Java 命令中使用。
When running org.apache.axis.wsdl.WSDL2Java (Axis 1) against a recently changed wsdl, there is a failure because some sources already exist. Is there a way to force overwrite of existing classes? I don't see anything at http://axis.apache.org/axis/java/reference.html that can help me in this case.
I am looking for something like the -or option which can be used in the Axis 2 WSDL2Java command.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不相信有办法强制覆盖。至少我在 ant 任务的代码中找不到它,所以我想它不存在。使用带有 -b 和 -or 标志的 Axis2 wsdl2java 是否适合您?这应该会生成 Axis 1.x 兼容代码,并允许您访问 Axis2 版本的命令中确实存在的覆盖选项。
I don't believe there is a way to force the overwrite. At least I can't find one in the code for the ant task so I imagine it doesn't exist. Would using the Axis2 wsdl2java work for you with the -b and -or flags? That should generate Axis 1.x compatible code and give you access to the overwrite option that does exist in the Axis2 version of the command.