Oracle SOA Suite Composite Deployment - Global Type declaration/definition of name *are duplicated - Part1
Sometimes we used to get the below error message while deploying the composites to theOracle SOA Suite server.oracle.fabric.common.wsdl.XSDException: Global element declaration/definition of name '{http://xmlns.oracle.com/GlobalDeclaration/employee}Employee' are duplicated at the following locations:
http://localhost:8000/soa-infra/services/default/EmployeeServer/employeeserver_client_ep?XSD=xsd/EmployeeServer.xsd
[line#: 4]
http://localhost:8000/soa-infra/services/default/EmployeeServer/xsd/EmployeeServer.xsd
[line#: 3]
file:/reuters/shared/11g/software/soa_deploy/code/Utilities/EmployeeClient/xsd/EmployeeClient.xsd
[line#: 6]
There are at
least two of them looking different:
http://localhost:8000/soa-infra/services/default/EmployeeServer/employeeserver_client_ep?XSD=xsd/EmployeeServer.xsd
[difference starting at line#:7]
file:/reuters/shared/11g/software/soa_deploy/code/Utilities/EmployeeClient/xsd/EmployeeClient.xsd
[difference starting at line#:9]
The exception states the
definition of the element Employee with the names spaces
“http://xmlns.oracle.com/GlobalDeclaration/employee” differs in the following
location.
file:/code/Utilities/EmployeeClient/xsd/EmployeeClient.xsd
I am having two composites EmployeeClient and EmployeeServer,
EmployeeClient invokes EmployeeServer via parnerlink, EmployeeClient and
EmployeeServer composites are defined with the following xsd’s
EmployeeClient/EmployeeClient.xsd:
<?xml
version="1.0" encoding="UTF-8"?>
<schema
attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/GlobalDeclaration/employee"
xmlns="http://www.w3.org/2001/XMLSchema">
<element
name="Employee">
<complexType>
<sequence>
<element
name="empid" type="string"/>
</sequence>
</complexType>
</element>
</schema>
EmployeeServer/EmployeeServer.xsd:
<?xml
version="1.0" encoding="UTF-8"?>
<schema
attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/GlobalDeclaration/employee"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="Employee">
<complexType>
<sequence>
<element
name="empid" type="string"/>
<element name="empname" type="string"/>
<element name="contactno" type="string"/>
<element name="state" type="string"/>
</sequence>
</complexType>
</element>
</schema>