Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Handling Recursive include in XSD

843833Jan 28 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2008
Added on Jan 28 2008
0 comments
269 views