We have an enormous WSDL that we develop against that ends up generating over 3,500 files and 31MB of code. This seems to prevent any meaningful work from getting done since VS Code doesn't seem to want to parse all those files.
We're using JAXB2 to generate the code. Is there somewhere within the POM I can specify only certain items from a WSDL, including their dependencies? e.g., I want the CreateTransaction object, which relies on Transaction, CreateTransactionRequest, CreateTrasnactionResponse, and skip getting things that don't pertain to Transaction?
I tried going the route of deleting the unneeded generated java files, but considering the amount of files generated, this is very tedious and time consuming. I'd like to be able to use the ObjectFactory.java file generated by JAXB as well.
Here is the current POM:
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.15.1</version>
<!-- Comment this piece to prevent current generated code from being overwritten - app is slow with whole WSDL generated. -->
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<args>
<arg>-XautoNameResolution</arg>
</args>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>xxx.xxx.xxx</generatePackage>
<schemas>
<schema>
<url>https://foo.bar?wsdl</url>
</schema>
</schemas>
</configuration>
</plugin>
Thanks!