The Configuration Web Service has operations for listing and deleting precedence rules.
<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>
In the example, the operation failed because the name of the precedence rule was misspelled.