BusinessObjects Board

[4.1] Get Universe object definition via RESTful interface

Hello,

I’m working on some script that would retrieve data from universes. I’m using RESTful on BO 4.1 platform and I was able to retrieve most information I need except object definition. I mean I would like to retrieve object properties (those we can see on Object Properties window in Universe Designer) like Select, Where, and so one. Normally if you are retrieving universe details via REST you can see outline with items and folders but there are only basic information like ID, Name, Type and Data type. There are no details…

Any hints?

Many thanks,
Regards


isri (BOB member since 2009-09-16)

[Moderator Note: Moved from Semantic Layer / Universe Designer to SDK (VBA/ASP/JSP)]


Marek Chladny :slovakia: (BOB member since 2003-11-27)

For this information you need to use the Semantic Layer Java SDK.

The SL SDK works for .unx universes.

Bernd


BerndB :de: (BOB member since 2006-05-17)

Hi Bernd,

Is that still not possible using the RESTful services?

Regards,
Igor


IgorShch (BOB member since 2012-05-10)

Hi Igor,

You need the Semantic Layer java sdk when you want to access object properties in a .unx universe.

Regrads,
Bernd


BerndB :de: (BOB member since 2006-05-17)

Hi Bernd,

Thanks a lot for the reply.

Unfortunately, Java is not my strong side: I do .Net development. Would you recommend a good place to start with JAVA SDK (a resource with a good manual or detailed example). I don’t need to do much with it, just to get XML or JSON (or any format) file with all universe objects. I can do the rest in C#.

Regards,
Igor


IgorShch (BOB member since 2012-05-10)

Hi
We had same problem and we fix using SoftNtic Java Abstraction SDK that allows you to call all SAP BI SDK version in a single SDK.

They have been acquired by ebiexperts and i have seen that they have also a .NET version

Have a look to http://www.ebiexperts.com/ebiexperts-framework-for-sap-bi-sdk/

Hope this help

Regards


whairnud :belgium: (BOB member since 2006-04-28)

Sources of universe metadata

REST API: summary info for unv and unx

Java SL SDK: Detail info for unx only

Designer COM SDK: Detail info for unv only


joepeters :us: (BOB member since 2002-08-29)

Can anyone of you guys help me with the understanding of RESTful API’s? I don’t quite understand why its used or how. Brand new to the RESTful arena and any guidance you guys could give would be immensely helpful!


indy (BOB member since 2004-04-08)

REST (Representational State Transfer) is a method for communicating with a server over HTTP. The BO REST APIs allow for programs to interact with a BO server in a similar way as the Java and .NET APIs.

The primary differences are:
[list][:ef296ff382]No local installation of any client libraries is needed to use the APIs
[
:ef296ff382]All usage of the APIs is done with HTTP GET/PUT/POST/DELETE calls. You send a HTTP request with specially formatted parameters and/or body, and receive an HTTP response with the requested information.
[*:ef296ff382]When using a traditional SDK (Java or .NET), you are writing native code that performs certain actions. You might call a method that returns a standard Java List, containing IInfoObject objects. In REST, everything is text. Depending on what you are doing, you may need to construct an XML string to be passed in a POST call, then retrieve another XML string back which needs to be parsed so you can extract the information that you want.[/list]
The biggest push for REST comes from the fact that it is language and platform agnostic – as long as your program can write and read over HTTP, it can interact with the REST server. You can also interact with REST interactively (sorta) using browser-based REST clients.

The downside (in my opinion) is that it requires a lot more code. Rather than using native libraries, you need to manage fairly low-level data translation tasks, such as writing and parsing XML. It also makes debugging more difficult, since there are many more runtime errors than compile errors.

Fundamentally, the REST APIs perform the same function as native libraries, but do it in a very different way.


joepeters :us: (BOB member since 2002-08-29)

Unfortunately, you can’t. That capability is not in the RESTful SDK. You would have to use the Java Semantic Layer SDK to get that for .unx universes or the COM-based Designer SDK for .unv universes (there are some tricks to using this SDK, let me know if you need more info).

-Dell


hilfy :us: (BOB member since 2007-04-16)

Can I use BO RESTFul API to run a report and download the report to my java application?

Thanks!


hemanthkolla (BOB member since 2016-05-24)

Yes. The RESTful SDK will give you info about parameters in the report and will also provide a base OpenDocument URL you can use to export a report in a specific format.

-Dell


hilfy :us: (BOB member since 2007-04-16)

Since we are using REST service which in turn are HTTP requests, can I use excel macro to do this? Excel macro has capability to raise GET and POST requests.

Let me give it a try.


Arun8006 (BOB member since 2006-12-22)

I was able to call REST APIs through excel macro.
Here is a a small POC or a tool using excel macro, which gets WEBI report’s
data provider details like , names of the DPs, the objects used in the DPs and their definition along with the query the DP generates.

Hope will be useful for other who wants to explore.
https://bobj-board.org/t/252272


Arun8006 (BOB member since 2006-12-22)