Web service Client Using Axis2 + XML Beans = Why So Many Files ??
posted 4 years ago
I'm generating code for a web service using axis2 with xmlbeans method.
In the first place, what stunned me was the number of files that are
generated for a web service client: approximately 1500 ! The first thing
comes to mind is why on earth would you need so many files?
I presume these generated xsb files are somehow dependent on the wsdl or
xsd, since they're generated each time I run wsdl2java.
Another quirk is the TypeSystemHolder class, that is generated, and placed
somewhere between the xsb files. It's not a generated source file that is
located with the other, regular source files. You need to have it on the
classpath; that's all I know.
I don't feel comfortable bundling so many files into my enterprise application for a single client. What about going forward if I were to create 20 more clients - 20 * 1500 files ???
Am I doing something wrong or is it just the way it( axis2 with xmlbeans) is.