【问题标题】:icCube XMLA request documentationicCube XMLA 请求文档
【发布时间】:2016-12-14 14:06:17
【问题描述】:

是否有关于如何向 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 文档基本不存在。

提前感谢您的帮助。

【问题讨论】:

  • 您的 XMLA 请求很好,只是空的,尝试使用可以在 icCube 的 IDE 中验证的有效 MDX。
  • 这个相同的 MDX 在 icCube 的 IDE 中返回一个非空结果。
  • 我已经通过添加带有 propertyList 和 catalog 的属性标签解决了这个问题。

标签: soap iccube xmla


【解决方案1】:

我必须在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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-27
    • 1970-01-01
    • 2016-01-08
    • 1970-01-01
    • 2020-10-11
    • 1970-01-01
    相关资源
    最近更新 更多