The helper classes used by the web service use other classes which are in different packages and are bundled in a jar file and available on the classpath.
I use the "com.sun.tools.ws.ant.WsGen" wsgen ant task to generate the WS artifacts. The problem is that the wsgen only generates the schema bindings for the namespace which I provided in the annotations. It does not generate the schema bindings for the other packages and eventually they are not referred at all in the WSDL file.
Below is the snippet for the WSDL generated by the wsgen ant task
Question #1. Why The wsgen task has created 2 schema binding files with one namespace as "http://dm.mycomp.com" which I have not specified anywhere?
Question #2. What am I doing wrong with the wsgen task because of which it is not generating the schema bindings for all the required packages?
Some More Information:
This behavior is quite different to what I observe when I run the IBM WSDK Bean2WebService command line tool provided with RAD 7.0. The WSDL generated there has the schema bindings for all the packages and structures.
Below is a snippet of the WSDL generated by Bean2WebService command line tool
I have also run the weblogic jwsc ant task on the same SEI and it generates huge number of schema binding files and the generated WSDL has references to all the user defined types with the package name as the namespace.
The incorrect WSDL has an impact when I generate the client artifacts using "wsimport" ant task. The client classes are generated in the "com.mycomp.dm" package which is not the same as their actual package.
Please help me if there something wrong that I am doing and how can I get the correct WSDL generated with wsgen ant task.
subject: wsgen does not generate correct schema bindings and wsdl file