首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >icCube XMLA请求文档

icCube XMLA请求文档
EN

Stack Overflow用户
提问于 2016-08-09 01:33:09
回答 1查看 127关注 0票数 3

有没有关于如何表达对XMLA的请求的文档?

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

我想使用postman或类似的方法对端点进行演示调用,但我不确定要在SOAP请求中传递哪些参数。

我试过了:

代码语言:javascript
复制
<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>

我得到了一个空的响应:

代码语言:javascript
复制
<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文档基本上是不存在的。

提前感谢您的帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-09 19:48:08

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

代码语言:javascript
复制
<?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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38835288

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档