icCube XMLA请求文档

时间:2016-08-08 17:33:09

标签: soap iccube xmla

是否有关于如何向XMLA提出请求的文档?

我的icCube XMLA端点是:http://localhost:8282/icCube/xmla

我想使用postman或类似的东西对端点进行演示调用,但我不确定在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>

有谁知道在哪里可以找到有关如何提出此请求的更多信息? http://www.iccube.com/support/documentation/user_guide/running_iccube/xmla.php上的icCube文档基本上不存在。

提前感谢您的帮助。

1 个答案:

答案 0 :(得分:2)

我必须在soap调用中添加正确的属性信息:

<?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