wsdl2java icon indicating copy to clipboard operation
wsdl2java copied to clipboard

[Question] It is possible to set a custom prefix to generated class names?

Open rafareyes7 opened this issue 6 years ago • 1 comments

Hi,

Is there a flag for specifying a custom prefix to be added to all generated classes names?

rafareyes7 avatar Oct 01 '19 14:10 rafareyes7

I added a bindings file (bindings.xml) which contains the reference to the .xsd that I want to add the prefix for generated classes and the config specifiying the value for the custom flag and the target (types, anonymous types and elements) --> source

Also based on that response on the gradle task definition I add to wsdlsToGenerate definition the '-b' flag from http://cxf.apache.org pointing to the just added binding file ...run the task and now all the generated classes defined on the target contains the prefix that I defined on my binding file.

rafareyes7 avatar Oct 01 '19 15:10 rafareyes7