【发布时间】: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 的属性标签解决了这个问题。