Handling Recursive include in XSD
Hi Experts,
I 'am trying to create a java client proxy for my WSDL. My XSD "includes" 3 other xsds that have recursive imports among them due to which the client proxy generation results in an infinite loop eventually leading to a StackOverFlowException. This happens in Axis 1.2 and jdeveloper as far as I 've tested. Though I heard the latest versions of these tools do support recursive include handling, I would like to get rid of this recursive include so that it can be used to generate client proxy in most available tools.
Here is my usecase:
TestEmployee.WSDL
....
<xsd:schema>
<xsd:import namespace="http://xmlns.oracle.com/apps/fnd/framework/svctoolbox/samplelib" schemaLocation="http://<host>/<path>/TestEmployeeService.xsd"/>
</xsd:schema>
TestEmployeeService.xsd:
=============================
<xsd:include schemaLocation=A.xsd/>
<xsd:include schemaLocation=B.xsd/>
<xsd:include schemaLocation=C.xsd/>
A.xsd
===================================
<xsd:include schemaLocation=C.xsd/>
B.xsd
===================================
<xsd:include schemaLocation=A.xsd>
<xsd:include schemaLocation=C.xsd>
C.xsd
=====================================
<xsd:include schemaLocation=B.xsd>
The xsd structures are such that the include can not be ignored. Any suggestions on how to break the loop in this recursion would be immensely helpful.
Thanks,
Ganapathi