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.

 View Only
Expand all | Collapse all

Document from XML schema which has abstract types

  • 1.  Document from XML schema which has abstract types

    Posted Tue November 15, 2016 09:27 PM

    I have created document from XML schema which has abstract types. webMethods not generating *doctype element which should have pick list elements. Please see below xml schema. I am using applicationInitiationRequest as root element.

    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns="http://www.example.com/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="applicationInitiationRequest">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="applicationDetails" type="applicationDetailsBaseType"/>
    <xs:element name="applicationContent" type="applicationContentBaseType"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:complexType name="applicationContentBaseType">
    <xs:sequence>
    <xs:element name="isEmailClientStatement" type="xs:boolean" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="applicationDetailsBaseType" abstract="true">
    <xs:sequence>
    <xs:element name="testIndicator" type="xs:boolean"/>
    <xs:element name="autoSubmit" type="xs:boolean" minOccurs="0"/>
    <xs:element name="badgeCode" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="4"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="externalReferenceId" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="32"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="primaryApplicantFirstName">
    
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="15"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="primaryApplicantLastName">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="25"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="directApplicationDetailsType" abstract="false">
    <xs:complexContent>
    <xs:extension base="applicationDetailsBaseType">
    <xs:sequence>
    <xs:element name="primaryApplicantDOB" type="xs:date">
    
    </xs:element>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="intermediaryApplicationDetailsType" abstract="false">
    <xs:complexContent>
    <xs:extension base="applicationDetailsBaseType">
    <xs:sequence>
    <xs:element name="names" type="xs:string" minOccurs="0">
    
    </xs:element>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    </xs:schema>

    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Document from XML schema which has abstract types

    Posted Wed November 16, 2016 10:59 PM

    I have removed abstract=false text from above schema. Now the document has been generated with *doctype as expected.

    Thanks,
    Sai


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB