Документация по запросу icCube XMLA

Есть ли документация о том, как сформулировать запрос к XMLA?

Конечная точка icCube XMLA для меня: http://localhost:8282/icCube/xmla

Я хочу сделать демонстрационный вызов конечной точке с помощью почтальона или чего-то подобного, но я не уверен, какие параметры передавать в запросе SOAP.

Я пытался:

<x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:schemas-microsoft-com:xml-analysis">
    <x:Header>
        <urn:Session SessionId="?" mustUnderstand="?"/>
        <urn:BeginSession mustUnderstand="?"/>
        <urn:EndSession SessionId="?" mustUnderstand="?"/>
    </x:Header>
    <x:Body>
        <urn:Execute>
            <Command>
                <Statement>
                     SELECT 
                         {[Customers].[Geography].[All Regions].[North America].[Canada].[Ottawa]} on COLUMNS,
                         {[Measures].[Count]} on ROWS
                     FROM [Sales]
                </Statement>
            </Command>
            <Properties/>
        </urn:Execute>
    </x:Body>
</x:Envelope>

И получаю пустой ответ:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <Session SessionId="1hb96vaa7acol14bj97tyokd4f" xmlns="urn:schemas-microsoft-com:xml-analysis"/>
    </soap:Header>
    <soap:Body>
        <ExecuteResponse xmlns="urn:schemas-microsoft-com:xml-analysis">
            <return>
                <root xmlns="urn:schemas-microsoft-com:xml-analysis:empty"/>
            </return>
        </ExecuteResponse>
    </soap:Body>
</soap:Envelope>

Кто-нибудь знает, где я могу найти дополнительную информацию о том, как сделать этот запрос? Документация icCube по адресу http://www.iccube.com/support/documentation/user_guide/running_iccube/xmla.php практически не существует.

Спасибо заранее за любую помощь.


person Ryan27    schedule 08.08.2016    source источник
comment
Ваш запрос XMLA в порядке, просто пустой, попробуйте с допустимым MDX, который вы можете проверить в IDE icCube.   -  person ic3    schedule 09.08.2016
comment
Тот же MDX возвращает непустой результат в IDE icCube.   -  person Ryan27    schedule 09.08.2016
comment
Я решил проблему, добавив тег свойств со списком свойств и каталогом.   -  person Ryan27    schedule 09.08.2016


Ответы (1)


Мне пришлось добавить правильную информацию о свойствах в вызов мыла:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
 <SOAP-ENV:Body>
  <Execute xmlns="urn:schemas-microsoft-com:xml-analysis" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <Command>
        <Statement>
           SELECT 
               {[Customers].[Geography].[All Regions].[North America].[Canada].[Ottawa]} on COLUMNS,
               {[Measures].[Count]} on ROWS
           FROM [Sales]
        </Statement>
    </Command>
    <Properties>
        <PropertyList>
            <Catalog>Sales</Catalog>
        </PropertyList>
    </Properties>
  </Execute>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Лучшая документация по XMLA, которую мне удалось найти, — это XML for Analysis Specification< /а>.

person Ryan27    schedule 09.08.2016