I was working on the XML schema creation in Oracle Service Bus application, and I got the following issue while building the OSB service project:
Error: cos-element-consistent: Type of element is inconsistent with another element with the same name in this content model."/>
Later I found that some body has updated the schema with same element which is already there with some other type i.e. I put this element
<element name="ResponseStatus" type="ResponseStatus_Type" />
"ResponseStatus_Type" is simple type which is defined as follows:
<xsd:simpleType name="ResponseStatus_Type">
<xsd:restriction base="String_Type">
<xsd:maxLength value="64"/>
</xsd:restriction>
</xsd:simpleType>
Now somebody else defined one more element with same name i,e "ResponseStatus" but different type like this:
<element name="ResponseStatus" type="string" />
Solution
Just remove the one of the definition of the element with same name.
Error: cos-element-consistent: Type of element is inconsistent with another element with the same name in this content model."/>
Later I found that some body has updated the schema with same element which is already there with some other type i.e. I put this element
<element name="ResponseStatus" type="ResponseStatus_Type" />
"ResponseStatus_Type" is simple type which is defined as follows:
<xsd:simpleType name="ResponseStatus_Type">
<xsd:restriction base="String_Type">
<xsd:maxLength value="64"/>
</xsd:restriction>
</xsd:simpleType>
Now somebody else defined one more element with same name i,e "ResponseStatus" but different type like this:
<element name="ResponseStatus" type="string" />
Solution
Just remove the one of the definition of the element with same name.
No comments:
Post a Comment