Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

How to connect the Mondrian server purely on client side (XML/A access by Ajax)?

$
0
0
I found the Mondiran documentation to access the XML/A and setups. But I don’t find the detailed information to access the XML/A directly from the Mondrian server. So how can access the XMLA in Mondrian server using Ajax call like as SSAS? Is there any connection parameter to connect Mondrian BI server through Ajax as below?

I am accessing the XMLA using Ajax call using JavaScript by creating msmdpuml.dll to SSAS (SQL Server Analysis Services), my JavaScript code for accessing XML/A from SSAS using Ajax call is,

Code:



var MDX = " SELECT  {[Date].[Fiscal]  ON COLUMNS ,  {[Measures].[Customer Count]}  ON ROWS  FROM [Adventure Works] ;           
$.ajax({
                type: "POST",
                url: "http://localhost:6078/olap/msmdpump.dll",
                data: "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\"> <Header></Header> <Body> <Execute xmlns=\"urn:schemas-microsoft-com:xml-analysis\"> <Command> <Statement> " + MDX +" </Statement> </Command> <Properties> <PropertyList> <Catalog>Adventure Works DW Standard Edition</Catalog> </PropertyList> </Properties> </Execute> </Body> </Envelope>",
                success: function (responce, textStatus, jqXHR) {
                                                                $('body').append(responce);
                },
                contentType: "text/xml",
                dataType: "xml",
            });


Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>