機械翻訳について

複雑なスキーマのサポート

次の項では、「RESTアダプタ」複合スキーマ機能を詳細に説明します。

複雑なスキーマのサポート

他のXSDをインポートして含めることができるXSDをサポートしています。 ZIPファイルに含まれているXSDは、HTTPロケーションからXSDをインポートできます。 すべてのXSDファイルをZIPファイルに追加し、アダプタ・エンドポイント構成ウィザードで「RESTアダプタ」を構成するときにアップロードする必要があります。

次の例では、アップロードするZIPファイルの階層は次のとおりです:

zipxsd.zip
  first.xsd
  second (folder)
    second.xsd
first.xsdsecond.xsdをインポートします。
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:tns="http://xmlns.oracle.com/first" 
targetNamespace="http://xmlns.oracle.com/first" 
      xmlns:tns1="http://xmlns.oracle.com/second"> 
<xs:import schemaLocation="./second/second.xsd" 
targetNamespace="http://xmlns.oracle.com/second"/>
<xs:import schemaLocation="https://example.com/fscmService/ItemServiceV2?
XSD=/xml/datagraph.xsd" targetNamespace="commonj.sdo"/>
<xs:element name="book"> 
  <xs:complexType> 
    <xs:sequence> 
      <xs:element name="isbn" type="xs:string"/>
      <xs:element name="title" type="xs:string"/> 
      <xs:element name="author" type="tns1:author"/> 
    </xs:sequence> 
  </xs:complexType>  
</xs:element> 
</xs:schema>
second.xsdの内容は次のとおりです。
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:tns="http://xmlns.oracle.com/second" 
targetNamespace="http://xmlns.oracle.com/second"> 
<xs:import schemaLocation="https://example.com/fscmService/ItemServiceV2?
XSD=/mycompany/apps/scm/productModel/items/itemServiceV2/ItemAttachment.xsd" 
targetNamespace="http://xmlns.oracle.com/apps/scm/productModel/items/itemServiceV2/"/>
<xs:complexType name="author">
    <xs:sequence> 
       <xs:element name="name" type="xs:string"/>  
       <xs:element name="address" type="xs:string"/> 
    </xs:sequence> 
</xs:complexType> 
<xs:element name="Admin">
    <xs:complexType>
          <xs:sequence>
             <xs:element name="AdminName" type="xs:string"/>
             <xs:element name="AdminAdd" type="xs:string"/>
          </xs:sequence>
    </xs:complexType>
</xs:element>
</xs:schema> 

ノート:

HTTPSのロケーションからインポートする場合は、必ずSSL証明書をOracle Integrationにインポートしてください。