А можно на примере?
В kernel.xml добавил в строчку
Код:
<group title="Договор" xmlns:contract="http://service.common.api.contract.kernel.bgbilling.bitel.ru/">
Дальше добавил правило для поиска договора
Код:
<service id="62" name="ContractService" operation="contractList" title="Поиск договора"/>
Теперь хочу запретить поиск скрытых договоров.
Методом тыка и анализом дебага лога клиента нашел
Цитата:
http://10.0.6.152:8080/bgbilling/executer/ru.bitel.bgbilling.kernel.contract.api/ContractService?wsdl -> {http://service.common.api.contract.kernel.bgbilling.bitel.ru/}ContractService:contractList
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns5:contractList xmlns:ns5="http://service.common.api.contract.kernel.bgbilling.bitel.ru/" xmlns:common="http://common.bitel.ru" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><arg2>-1</arg2><arg3>0</arg3><arg4>1</arg4><arg6>false</arg6><arg7>true</arg7>
<arg8>true</arg8><arg9 pageCount="0" pageIndex="1" pageSize="25" recordCount="0"/></ns5:contractList></S:Body></S:Envelope>
http://10.0.6.152:8080/bgbilling/execut ... rvice?wsdl -> {http://service.common.api.contract.kernel.bgbilling.bitel.ru/}ContractService:contractList
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns5:contractList xmlns:ns5="http://service.common.api.contract.kernel.bgbilling.bitel.ru/" xmlns:common="http://common.bitel.ru" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><arg2>-1</arg2><arg3>0</arg3><arg4>1</arg4><arg6>false</arg6><arg7>true</arg7>
<arg8>false</arg8><arg9 pageCount="0" pageIndex="1" pageSize="25" recordCount="0"/></ns5:contractList></S:Body></S:Envelope>
Какое правило необходимо в этом случае написать?
Код:
<service id="10001" name="ContractService" operation="contractList" title="Поиск скрытых договоров"> <regexp path="contract:contractList/??????????????????" value="true"/> </service>
<service id="62" name="ContractService" operation="contractList" title="Поиск договора"/>