Hi All,
I’m using webMethods Developer Version 4.6.1 (943). I need to create a set of reusable record hierarchy in webMethods. I got the XSD Definitions that can serve as input to my work. The XSDs are designed in such a way that changes to the most reusable types can be made at a single place. In other words most of the XSDs refer to a few reused XSDs using s.
When I create a record from an xsd that refers to another xsd using a schema ; webMethods throws the following error
Could not use that DTD or XML Document.java.lang.reflect.InvocationTargetException:StackOverflowError
When I use the same schema with replaced with the actual definition of included types� webMethods creates the Record and the Schema.
The question now is " is the usage(below) correct?" or I need to do some correction to my scheme esp. to the URL? Also I would like to know whether web Methods can segregate the reused types of a schema into different independent records and can reuse them as record references the places they are referred in other types (records).
Following is the Schema file for which I want to generate a webMethods Record.
<?xml version="1.0" encoding="UTF-8"?><xs:schema targetNamespace=“http://www.mycompany.com/oos” xmlns:xs=“XML Schema” xmlns=“http://www.mycompany.com/oos” elementFormDefault=“qualified” attributeFormDefault=“unqualified”>
<xs:include schemaLocation=“C:\IVRU\xsd\wsdl\30Jun2003\InnerNested.xsd”/>
<xs:element name=“Nested” type=“Nested”>
xs:annotation
xs:documentationNested Element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name=“Nested”>
xs:annotation
xs:documentationNested Type</xs:documentation>
</xs:annotation>
xs:sequence
<xs:element name=“InnerNested” type=“InnerNested”/>
<xs:element name=“shortVar” type=“xs:short”/>
<xs:element name=“doubleVar” type=“xs:double”/>
</xs:sequence>
</xs:complexType>
</xs:schema>
The include file �InnerNested� is listed below
<?xml version="1.0" encoding="UTF-8"?><xs:schema targetNamespace=“http://www.mycompany.com/oos” xmlns=“http://www.mycompany.com/oos” xmlns:xs=“XML Schema” elementFormDefault=“qualified” attributeFormDefault=“unqualified”>
<xs:element name=“InnerNested” type=“InnerNested”>
xs:annotation
xs:documentationInner Neseted ELement</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name=“InnerNested”>
xs:annotation
xs:documentationInner Nested Type</xs:documentation>
</xs:annotation>
xs:sequence
<xs:element name=“stringVar” type=“xs:string”/>
<xs:element name=“booleanVar” type=“xs:boolean”/>
<xs:element name=“intVar” type=“xs:int”/>
</xs:sequence>
</xs:complexType>
</xs:schema>