28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.2.7 Defining the Data an XMLA Service Exposes<br />

An XMLA service exposes data stored in database tables for analysis and display by client applications. However,<br />

first of all, you need to ensure that the tables and views to expose as an XMLA service actually exist and are<br />

accessible.<br />

To define the data to expose using an XMLA service, you must perform at least the following tasks:<br />

1. Create a simple database schema.<br />

2. Create a simple database table to expose with an XMLA service.<br />

3. If required, create a simple database view to expose with an XMLA service.<br />

4. Grant select privileges to the tables and views to be exposed with the XMLA service.<br />

8.2.8 Creating an XMLA Service Definition<br />

The XMLA service definition is a file you use to specify which data is exposed as XMLA/MDX collections for<br />

analysis and display by client applications.<br />

An XMLA service for <strong>SAP</strong> <strong>HANA</strong> XS is defined in a text file with the file suffix .xsxmla, for example,<br />

XMLASrvDef.xsxmla. The file resides in the package hierarchy of the XMLA application and must contain the<br />

entry service {*}, which generates an operational XMLA service.<br />

Prerequisities for the creation of an XMLA service definition:<br />

● <strong>SAP</strong> <strong>HANA</strong> studio and client installed and configured<br />

● <strong>SAP</strong> <strong>HANA</strong> database user available with repository privileges (for example, to add packages)<br />

● A <strong>SAP</strong> <strong>HANA</strong> development system added to (and available in) <strong>SAP</strong> <strong>HANA</strong> studio, for example, in either the<br />

Navigator view or the <strong>SAP</strong> <strong>HANA</strong> Repositories view<br />

● A working development environment including a repository workspace, a package structure for your XMLA<br />

application, and a shared project to enable you to synchronize changes to the XMLA project files in the local<br />

file system with the repository<br />

● Data is available to expose using the XMLA interface<br />

1. In the shared project you are using for your XMLA application, use the Project Explorer view to locate the<br />

package where you want to create the new XMLA service definition.<br />

Note: The file containing the XMLA service definition must be placed in the root package of the XMLA<br />

application for which the service is intended.<br />

2. Create the file that will contain your XMLA service definition.<br />

In the Project Explorer view, right-click the folder where you want to create the new XMLA service-definition<br />

file and choose New File in the context-sensitive popup menu displayed.<br />

3. Create the XMLA service definition.<br />

210<br />

The XMLA service definition is a configuration file that you use to specify which data is to be exposed as an<br />

XMLA collection.<br />

The following code is an example of a valid XMLA service definition, which exposes all authorized data to<br />

XMLA requests:<br />

{*}<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Defining Web-based Data Access

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!