I'm not an ant expert, so I'm not sure I'm right, but I think the problem is that one ovverides target is another.
When you run the XmlBeans command, if you run it as two separate commands:
wsdl2java -uri my_service1.wsdl wsdl2java -uri my_service2.wsdl
The first command will generate a jar, and the second will ovverride with the new code from the second wsdl.
I think you run it like this, and that is why you only get the code for one wsdl.
You need to combine them into one wsdl (possibly a wsdl shell), and then generate the code from it.
Or you can create 2 different jars.
EDIT:
Minor correction, apparently Only IBM supports importing wsdl from another wsdl .
Thus, the wrapper option is outside the table. IMHO, these are your options:
- Change the target namespace of the general schema so that no conflict occurs and 2 jars are generated.
- Combining both wsdls into one (simple copy) - it can be a little difficult if there are methods / parameters with the same name that have a different purpose.
Tomer source share