简体   繁体   English

保持WSDL文件为最新

[英]Keeping WSDL files up to date

I have imported a WSDL web service a couple of months ago and realized that when I call it using the same class files I run into an issue. 几个月前,我已经导入了WSDL Web服务,并且意识到,当我使用相同的类文件进行调用时,我遇到了问题。 After a reimport it works again. 重新导入后,它可以再次工作。 (Probably significant changes were made to the 3rd party service.) (可能对第三方服务进行了重大更改。)

Is there aa way to automatize this so for example every maven build would re-fetch the class files (if needed) so that we don't have to worry about this issue? 有没有一种方法可以自动执行此操作,例如,每个Maven构建都会重新获取类文件(如果需要),这样我们就不必担心此问题了?

Thanks! 谢谢!

I'm not not sure that this will be of much help to you, but since I'm in the pretty much the same situation: 我不确定这是否会对您有很大帮助,但是由于我处在几乎相同的情况下:

  • Any way someone has to keep updating the WSDL file. 有人必须保持更新WSDL文件的任何方式。 Currently we discuss solution that this WSDL file can be included in build.xxxjar (I have it included in my project too). 当前,我们讨论该WSDL文件可以包含在build.xxxjar中的解决方案(我也将其包含在我的项目中)。

You could incorporate this plugin into your build to create classes based on teh wsdl. 您可以将此插件合并到构建中,以基于wsdl创建类。 http://mojo.codehaus.org/jaxws-maven-plugin/wsimport-mojo.html http://mojo.codehaus.org/jaxws-maven-plugin/wsimport-mojo.html

This way based on the WSDL classes will be generated with every build. 每次构建都会生成基于WSDL类的这种方式。 All you need to do is keep updating the WSDL in the source dir. 您需要做的就是继续更新源目录中的WSDL。

Edit: Seems like this plugin can also download the WSDL file. 编辑:好像这个插件也可以下载WSDL文件。

Maven download or fetch the wsdl from the url to project directory Maven从URL下载或获取wsdl到项目目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM