Reputation: 1165
We developed a web service client application using the wsdls from the url location.
I don't want the webservice client to go and validate the actual wsdls everytime , so wanted to download the wsdls in to local project . is there any way can i download the wsdls using maven similar to copy resources?
Thanks Vijay
Upvotes: 2
Views: 2252
Reputation: 21
You can use the wagon plugin to download the files to your project. See its usage page.
Upvotes: 2
Reputation: 100153
Two cases. If you own the service code, and it's something like Apache cxf, there's a command line like java2wsdl or java2ws. In the case of CXF, there's even a maven plugin for the job already.
If the service is 'out there' somewhere, you could use the linux wget or curl commands to fetch the wsdl from the ?wsdl URL.
Upvotes: 0