XSD / WSDL mapping to Smooks using WSO2 ESB

I am trying to map an XSD to another XSD that has several different elements in Smooks. When I add both XSDs to Smooks it prevents me from displaying the elements. Is it possible in Smooks to display two different XSDs?

XSD1: CDM

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:RequestResponse="http://example.com/cdm/xsd/Person_01_RequestResponse_001" 
xmlns:prsn="http:/example.com/cdm/xsd/Person_01" 
attributeFormDefault="unqualified" elementFormDefault="qualified" 
targetNamespace="http://example.com/cdm/xsd/Person_01_RequestResponse_001"> 

    <!-- ************ import Employee Model ************ -->

    <xs:import namespace="http://example.com/cdm/xsd/Person_01" schemaLocation="Person_01.xsd"/>

    <!-- ********************************************* -->
    <!--            Request Response Types             -->
    <!-- ********************************************* -->



    <!-- For CreatePerson operation-->

    <xs:element name="CreatePersonRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="PersonDetail" type="prsn:Person"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="CreatePersonResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="ResponseCode" type="xs:string"/>
                <xs:element name="ResponseMessage" type="xs:string"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <!-- For GetPerson operation-->

    <xs:element name="GetPersonRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="PersonId" type="prsn:PersonIdType" nillable="false"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="GetPersonResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Person" type="prsn:Person" minOccurs="0" nillable="true"/>                
                <xs:element name="ResponseCode" type="xs:string"/>
                <xs:element name="ResponseMessage" type="xs:string"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

</xs:schema>

      

XSD2: HERITAGE

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:RequestResponse="http://example.com/xsd/Person_01_RequestResponse_001" 
xmlns:prsn="http://example.com/xsd/Person_01" 
attributeFormDefault="unqualified" elementFormDefault="qualified" 
targetNamespace="http://example.com/xsd/Person_01_RequestResponse_001"> 

    <!-- ************ import Employee Model ************ -->

    <xs:import namespace="http://example.com/xsd/Person_01" schemaLocation="Person_01.xsd"/>

    <!-- ********************************************* -->
    <!--            Request Response Types             -->
    <!-- ********************************************* -->



    <!-- For CreatePerson operation-->

    <xs:element name="CreatePersonRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="PersonDetail" type="prsn:Person"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="CreatePersonResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="ResponseCode" type="xs:string"/>
                <xs:element name="ResponseMessage" type="xs:string"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <!-- For GetPerson operation-->

    <xs:element name="GetPersonRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="CNIC" type="xs:string" nillable="false" minOccurs="0"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="GetPersonResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Person" type="prsn:Person" minOccurs="0" nillable="true"/>                
                <xs:element name="ResponseCode" type="xs:string"/>
                <xs:element name="ResponseMessage" type="xs:string"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <!-- For UpdatePerson operation-->

    <xs:element name="UpdatePersonRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Person" type="prsn:Person"/>              
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="UpdatePersonResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="ResponseCode" type="xs:string"/>
                <xs:element name="ResponseMessage" type="xs:string"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <!-- For deletePerson operation-->

    <xs:element name="DeletePersonRequest">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="CNIC" type="xs:string" nillable="false" minOccurs="1"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="DeletePersonResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="ResponseCode" type="xs:string"/>
                <xs:element name="ResponseMessage" type="xs:string"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>


</xs:schema>

      

+3
wsdl xsd wso2esb wso2developerstudio smooks


source to share


No one has answered this question yet

Check out similar questions:

157
what is the difference between XSD and WSDL
2
WSO2 ESB Custom Properties for Smooks Broker
1
WSO2 ESB Proxy Service WSDL
1
Error WSS2 ESB Proxy-Service XSD Import
0
WSO2 ESB - Access WSDL, XSD and XSLT from ESB Catalog
0
Handle message in MQ with Smooks in WSO2 ESB
0
WSO2 ESB Xsd Mapping Tool
0
WSO2 ESB Smooks - XML ​​to CSV conversion
0
Parsing XSD Schema with XSOM in Java. How to access attributes in another namespace
-1
How to convert csv to json using WSO2 ESB Smook



All Articles
Loading...
X
Show
Funny
Dev
Pics