構成Webサービスには、優先順位ルールをリストおよび削除する操作があります。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.endeca.com/MDEX/config/services/types/3/0" xmlns:ns1="http://www.endeca.com/MDEX/config/XQuery/2009/09"> <soapenv:Header/> <soapenv:Body> <ns:configTransaction> <ns:listPrecedenceRules/> </ns:configTransaction> </soapenv:Body> </soapenv:Envelope>
<config-types:results xmlns:config-types="http://www.endeca.com/MDEX/config/services/types/3/0"> <precedenceRules xmlns="http://www.endeca.com/MDEX/config/XQuery/2009/09"/> </config-types:results>
<config-types:results xmlns:config-types="http://www.endeca.com/MDEX/config/services/types/3/0"> <precedenceRules xmlns="http://www.endeca.com/MDEX/config/XQuery/2009/09"> <precedenceRule key="AUS_Rule" triggerAttributeKey="DimGeography_CountryRegionName" triggerAttributeValue="Australia" targetAttributeKey="DimGeography_StateProvinceName" isLeafTrigger="false"/> <precedenceRule key="City_Rule" triggerAttributeKey="DimGeography_StateProvinceName" triggerAttributeValue="Victoria" targetAttributeKey="DimGeography_City" isLeafTrigger="false"/> </precedenceRules> </config-types:results>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.endeca.com/MDEX/config/services/types/3/0" xmlns:ns1="http://www.endeca.com/MDEX/config/XQuery/2009/09"> <soapenv:Header/> <soapenv:Body> <ns:configTransaction> <ns:deletePrecedenceRules> <ns1:precedenceRule key="City_Rule"/> </ns:deletePrecedenceRules> </ns:configTransaction> </soapenv:Body> </soapenv:Envelope>
<config-types:results xmlns:config-types="http://www.endeca.com/MDEX/config/services/types/3/0"/>
<soapenv:Fault> <faultcode>soapenv:Client</faultcode> <faultstring>endeca-err:MDEX0001 : Invalid input : No record has an assignment of value 'Citty_Rule' for property 'mdex-precedenceRule_Key'</faultstring> </soapenv:Fault>
この例では、優先順位ルールの名前にスペルミスがあったために操作が失敗しました。