是否有任何有关如何向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>
有谁知道我在哪里可以找到有关如何提出此请求的更多信息? http://www.iccube.com/support/documentation/user_guide/running_iccube/xmla.php处的icCube文档基本上不存在。
预先感谢您的任何帮助。
最佳答案
我必须将正确的属性信息添加到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。