IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Record Creation from XML Schema - include's in sche

    Posted 06/30/03 01:25 PM

    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>


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Record Creation from XML Schema - include's in sche

    Posted 07/03/03 07:18 AM

    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


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 3.  RE: Record Creation from XML Schema - include's in sche

    Posted 08/12/04 05:30 PM

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


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 4.  RE: Record Creation from XML Schema - include's in sche

    Posted 11/02/04 03:12 PM

    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


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 5.  RE: Record Creation from XML Schema - include's in sche

    Posted 11/05/04 08:51 AM

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


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Record Creation from XML Schema - include's in sche

    Posted 12/07/04 07:31 PM

    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!


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB