2016-08-08 39 views
3

Gibt es eine Dokumentation zur Formulierung einer Anfrage an die XMLA?icCube XMLA-Anforderungsdokumentation

Die icCube XMLA Endpunkt ist für mich: http://localhost:8282/icCube/xmla

ich einen Demo-Aufruf an den Endpunkt mit Postbote oder etwas ähnliches machen will, aber ich bin nicht sicher, welche in der SOAP-Anforderung übergeben Parameter.

Ich habe versucht:

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

Und ich bekomme eine leere Antwort:

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

Weiß jemand, wo ich einige weitere Informationen finden, wie diese Anforderung zu machen? Die icCube Dokumentation unter http://www.iccube.com/support/documentation/user_guide/running_iccube/xmla.php ist grundsätzlich nicht vorhanden.

Vielen Dank im Voraus für jede Hilfe.

+0

Ihre XMLA-Anfrage ist in Ordnung, nur leer, versuchen Sie es mit einer gültigen MDX, die Sie in der iCCube-IDE validieren können. – ic3

+0

Dieselbe MDX gibt ein nicht leeres Ergebnis in der IDE von icCube zurück. – Ryan27

+0

Ich habe das Problem gelöst, indem ich ein Eigenschafts-Tag mit propertyList und catalog hinzugefügt habe. – Ryan27

Antwort

2

Ich hatte die richtigen Eigenschaften Informationen an die Seife Anruf hinzuzufügen:

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

Die beste Dokumentation ich in der Lage gewesen, die XMLA zu finden die XML for Analysis Specification ist.