Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate artifacts from WSDL and XSD using gradle?

Can you post sample code to generate artifacts from wsdl and xsd using gradle? Also are there any in built plugins available? Also how can we load custom binding files using gradle?

like image 457
user1631733 Avatar asked Jul 31 '13 05:07

user1631733


2 Answers

Here's a similar question that has been answered: Howto generate classes from WSDL and XSD with gradle, equivalent to maven-jaxb2-plugin

A blog article: http://joerglenhard.wordpress.com/2012/01/10/xjc-and-schemagen-with-gradle/

You can specify a bindings file with binding: 'your-file-here'

like image 108
user2543253 Avatar answered Oct 07 '22 02:10

user2543253


I am the author of a wsdl2java plugin for gradle. It is open source and easy to use.

https://plugins.gradle.org/plugin/no.nils.wsdl2java

Good luck.

like image 33
nilsmagnus Avatar answered Oct 07 '22 01:10

nilsmagnus