2016-08-08 2 views
3

Existe-t-il une documentation sur la façon de formuler une requête au XMLA?Documentation de la requête icCube XMLA

Le point final icCube XMLA pour moi: http://localhost:8282/icCube/xmla

Je veux faire un appel de démonstration au point d'extrémité utilisant postier ou quelque chose de similaire, mais je ne suis pas certain que les paramètres à passer dans la requête SOAP.

J'ai essayé:

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

et je reçois une réponse vide:

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

Est-ce que quelqu'un sait où je peux trouver plus d'informations sur la façon de faire cette demande? La documentation d'icCube au http://www.iccube.com/support/documentation/user_guide/running_iccube/xmla.php est fondamentalement inexistante.

Merci d'avance pour toute aide.

+0

Votre demande XMLA est bonne, juste vide, essayez avec un MDX valide que vous pouvez valider dans l'IDE de l'icCube. – ic3

+0

Ce même MDX renvoie un résultat non vide dans l'IDE de l'icCube. – Ryan27

+0

J'ai résolu le problème en ajoutant une balise properties avec propertyList et catalog. – Ryan27

Répondre

2

je dû ajouter les informations de propriétés correctes à l'appel de savon:

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

La meilleure documentation que j'ai pu trouver pour le XMLA est le XML for Analysis Specification.