Hi,
I was trying to use wsdl2java on a wsdl that has two schema tags in the wsdl types tag. But the generated code fails to compile.
Attached errors -
[javac] symbol : method newXMLStreamReader()
[javac] location: interface org.apache.axiom.om.OMElement
[javac] (org.apache.axiom.om.OMAbstractFactory.getOMFactory(),new org.apache.axis2.util.StreamWrapper(param.newXMLStreamReader())) ;
[javac] ^
<wsdl:types>
<xsd:schema targetNamespace="namespace2" elementFormDefault="qualified">
<xsd:include schemaLocation="somexsd.xsd" />
<xsd:element name="element1" type="xsd:string" />
</xsd:schema>
<xsd:schema targetNamespace="namespace1" elementFormDefault="qualified">
<xsd:element name="element3" type="xsd:string" />
<xsd:element name="element4" type="xsd:string" />
</xsd:schema>
</wsdl:types>
In the temp directory used by wsdl2java, I see that for the elements and types defined in the second schema tag, there is no code generated at all. Has anyone come across this problem? Is this a bug? If yes, is there a workaround?
In /tmp/wsdl2java/ I do not see the code generated for element3 and element4.
Thanks,
Srinath.
