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.

Resource Types<br />

You can use the resource types (or constructs) described and explained here to define how the service definition<br />

exposes data. For example, the Service Document, Resource Type, or Entity sets enable you to select and view<br />

the contents of the entity sets that are queried.<br />

Service Document<br />

The most basic resource type is the call to the .xsodata resource itself. This supplies information about the<br />

entity set within this resource; otherwise known as the Service Document.<br />

● Sample XSODATA Service:<br />

service namespace "SAMPLE" {<br />

"sample.hello::hello_tbl" as "Entries";<br />

}<br />

● URI Construct:<br />

/.xsodata/<br />

● Sample URI:<br />

http://hanaxs:8000/sample/hello/hello_odata.xsodata/<br />

● Sample XML Output:<br />

● Sample JSON Output:<br />

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