How to properly include a CDT from a different namespace

Below is a sample CRT structure. What I have is an old CDT which is in an old namespace, and I am creating a new CDT in a new namespace, I would like to use the old cdt object from the old namespace in my new cdt but it is not working, please advise.

<xsd:schema
targetNamespace="new_CDT_Schema"
xmlns:types1="new_CDT_Schema" xmlns:types2="Old_CDT_Schema" xmlns:xsd="www.w3.org/.../XMLSchema">
<xsd:include schemaLocation="{Old_CDT_Schema}Old_CDT.xsd"/>
<xsd:complexType name="New_CDT">
<xsd:sequence>
<xsd:element name="ID" type="xsd:int">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">
                                                  @Column(nullable=false)
                                                  @Id
                                                  @GeneratedValue
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
           <xsd:element name="Sample" type="types2:Old_CDT">
<xsd:annotation>
                              <xsd:appinfo source="appian.jpa">
                                        @Column(nul...

OriginalPostID-233415

  Discussion posts and replies are publicly visible

Parents
  • I get this error, attached:
    - An error occurred while trying to save the type information to the primary data source. No types have been imported. Cause: The type {ucExchangeRates}UC_ExchangeRates is referenced, but is not defined in the XSD. (APNX-1-4050-002)

    - XSD Parsing Message: XSD: The location '{ucExchangeRates}UC_ExchangeRates.xsd' may not resolve to something other than a schema (APNX-2-4047-000)

    - XSD Parsing Message: XSD: Type reference 'ucExchangeRates#UC_ExchangeRates' is unresolved (APNX-2-4047-000)

Reply
  • I get this error, attached:
    - An error occurred while trying to save the type information to the primary data source. No types have been imported. Cause: The type {ucExchangeRates}UC_ExchangeRates is referenced, but is not defined in the XSD. (APNX-1-4050-002)

    - XSD Parsing Message: XSD: The location '{ucExchangeRates}UC_ExchangeRates.xsd' may not resolve to something other than a schema (APNX-2-4047-000)

    - XSD Parsing Message: XSD: Type reference 'ucExchangeRates#UC_ExchangeRates' is unresolved (APNX-2-4047-000)

Children
No Data