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

久未见 提交于 2019-12-11 11:03:12

问题


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


回答1:


You can use the wagon plugin to download the files to your project. See its usage page.




回答2:


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.



来源:https://stackoverflow.com/questions/5625309/maven-download-or-fetch-the-wsdl-from-the-url-to-project-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!