- How to merge schema’s in TIBCO
- Scenario
- empDetails (XSD):
- empStatus (XSD):
- EmployeeHistory (XSD):
- Solution
How to merge schema’s using import and include properties in TIBCO?
Assume like we have 3 schema’s à
EmployeeHistory, empDetails, empStatus.
We want to merge three schemas in single XSD i.e EmployeeHistory
My requirementà
we want to merge three schemas in single XSD.
Two ways we’ll merge schemas
- INCLUDEà <xs:include schemaLocation="empDetails.xsd"/>
- IMPORTà <xs:import namespace="http://www.tibco.com/schemas/FunctionsTest/Schema1.xsd3" schemaLocation="empStatus.xsd"/>
- INCLUDE:
- IMPORT:
INCLUDEà
Gotoà
Overviewà
includeà
select schema which one you want to merge.
NOTE: The namespace of an included schema must be the same as the base schema.
EmployeeHistory:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.tibco.com/schemas/FunctionsTest/Schema1.xsd"
targetNamespace="http://www.tibco.com/schemas/FunctionsTest/Schema1.xsd"
empDetails(XSD):
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.tibco.com/schemas/FunctionsTest/Schema1.xsd2"
targetNamespace="http://www.tibco.com/schemas/FunctionsTest/Schema1.xsd2"
In this scenario, if we try to merge these two schemas then it’ll prompt below error msg
Include Output:
IMPORTà
Gotoà
Overviewà
importà
select schema which one you want to merge.
Import output:
- How to use import/include schema’s in TIBCO
NOTE:
If you try to add this imported schema in any process definition, for that we have to refer By namespace instead of By location.
Below are the screeshots for that
INCLUDE:
IMPORT:
No comments:
Post a Comment