XMLA配置好之后需要先使用XMLA test page测试看是否配置正确
From Mondrian's documentation I find it quite simple to set up Mondrian as XMLA provider. But I didn't find any adequate information on how to test it directly from Mondrian's own bundled tool.
For any beginner, it will be hard and time consuming to find out whether the provider is already and rightly set up.
I write this article in order to help those with that problem, complementing Mondrian's own documentation .
Setup
<?xml version="1.0"?> <DataSources> <DataSource> <DataSourceName> Provider=Mondrian;DataSource=MySQLTest;</DataSourceName> <DataSourceDescription>Mondrian FoodMart Data Warehouse</DataSourceDescription> <URL>http://localhost:8080/mondrian/xmla</URL> <DataSourceInfo> Provider=mondrian;Jdbc=jdbc:mysql://localhost/foodmart;JdbcUser=root;JdbcPassword=;JdbcDrivers=com.mysql.jdbc.Driver;</DataSourceInfo> <ProviderName>Mondrian</ProviderName> <ProviderType>MDP</ProviderType> <AuthenticationMode>Unauthenticated</AuthenticationMode> <Catalogs> <Catalog name="FoodMart"> <Definition>/WEB-INF/queries/FoodMart.xml</Definition> </Catalog> </Catalogs> </DataSource> </DataSources>
DataSourceName tag
Although DataSourceName tag can have entry of any name - which can be detected by Mondrian form test - but we will use the "Provider= [value];DataSource= [value]" format instead.
Connection String
Validate Data Source
I assume that you already have Mondrian running under Tomcat in your local computer. Try browse to
http://localhost:8080/mondrian/xmlaTest.jsp. Select "1.discoverDataSource" option from the combo list then click "
show request" button until you see the XMLA construct like below.
After that, you might proceed by clicking " Run" to see if your XMLA provider - specified in your DataSourceName - is recognized.
A screen shot below indicated that Mondrian XMLA provider is recognized and ready to be sent any OLAP/MDX query.
Query Testing
Once you see the XMLA generated construct you need to modify one thing: DataSourceInfo entry.
Change the tag's value of "DataSource=MondrianFoodMart;" into "DataSource=MySQLTest;". Continue by clicking on "run" button.
If all going right you will have a returning XML SOAP result like below. This means that Mondrian has successfully executed your query.

3352




被折叠的 条评论
为什么被折叠?



