コレクションのリスト操作

listCollections操作は、データ・ドメイン内にあるすべてのコレクションのリストを返します。

listCollectionsの構文

listCollections操作の構文は次のとおりです。
<listCollections>
   <outerTransactionId>?</outerTransactionId>
   <language>en</language>
</listCollections>

outerTransactionId属性とlanguage属性はオプションです。

listCollectionsの例

次に、soapUIからlistCollectionsを呼び出す例を示します。
<soapenv:Envelope 
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
  xmlns:ns="http://www.endeca.com/endeca-server/sconfig/3/0">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:listCollections>
         <ns:language>en</ns:language>
      </ns:listCollections>
   </soapenv:Body>
</soapenv:Envelope>

listCollectionsのレスポンス

返されるコレクションのリストは、次の例のようになります。
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <ns2:listCollectionsResponse xmlns:ns2="http://www.endeca.com/endeca-server/sconfig/3/0">
         <ns2:collectionRecord collectionKey="ProductRecs" displayName="Product records" uniquePropertyKey="ProductId">
            <ns2:description>Collects product records in the system</ns2:description>
            <ns2:property key="PriceUnits">US dollars</ns2:property>
            <ns2:collectionAttributes/>
         </ns2:collectionRecord>
         <ns2:collectionRecord collectionKey="SalesRecs" displayName="Sales orders" uniquePropertyKey="SalesOrderCol">
            <ns2:description>Collects the sales order records in the system</ns2:description>
            <ns2:property key="Locale">New England</ns2:property>
            <ns2:collectionAttributes/>
         </ns2:collectionRecord>
      </ns2:listCollectionsResponse>
   </env:Body>
</env:Envelope>

この操作により、データ・ドメインに現在、ProductRecsとSalesRecsの2つのコレクションが定義されていることが示されます。