简体   繁体   中英

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. 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?

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. Currently we discuss solution that this WSDL file can be included in build.xxxjar (I have it included in my project too).

You could incorporate this plugin into your build to create classes based on teh wsdl. http://mojo.codehaus.org/jaxws-maven-plugin/wsimport-mojo.html

This way based on the WSDL classes will be generated with every build. All you need to do is keep updating the WSDL in the source dir.

Edit: Seems like this plugin can also download the WSDL file.

Maven download or fetch the wsdl from the url to project directory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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