Record Creation from XML Schema - include's in sche

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>

Hi Sudheer,
I am not sure if this solves your problem. I am quite new to wM. I faced a similar problem where I got the stackOverFlowError while trying to import a PIP into IS. Upon suggestion from a forum user I used the PIP Tool Fix 1 from wM and that solved the problem. Not sure if this is required to solve your problem.

Rajesh

Sudhir - Did this issue of you’re ever get addressed/resolved.Im facing a similar issue with Wm ver 6.1.

Hi Sudheer,
Can you please let me know what you did to resolve your issue?
I too am in the same problem right now.
Thanks,
Manoj

Can anyone provide an example of how to fix this issue?

Hi Guys,
You can use when importing an XSD file into WebMethods, two things you have to take care of :

  1. included XSD files should have same name spaces as the including one - this is the difference between and -.
  2. path of the included XSD file, make sure you specify the path correctly.

I am using WebMethods Developer 6.0.1 and it works fine!