37
1 In This Session With the advent of the RESTful Web Services API in the 4.x release of the SAP BusinessObjects BI platform, integration to backend systems from custom applications and streamlined end-user workflows has become much less cumbersome and faster to deliver We will investigate the various options for integrating custom workflows and UI modifications using simple demo code Discuss the different APIs and identify their strengths and weaknesses Provide “Starter Code” samples that you can apply and extend in your own environment

SAPInsiderBI2015 Restful

Embed Size (px)

DESCRIPTION

Using Restful Web Services with BusinessObjects 4.1

Citation preview

  • 1In This Session

    With the advent of the RESTful Web Services API in the 4.x release of the SAP BusinessObjects BI platform, integration to backend systems from custom applications and streamlined end-user workflows has become much less cumbersome and faster to deliver

    We will investigate the various options for integrating custom workflows and UI modifications using simple demo code

    Discuss the different APIs and identify their strengths and weaknesses

    Provide Starter Code samples that you can apply and extend in your own environment

  • 2What Well Cover

    What is RESTful anyway? Why is RESTful solution better than traditional SDK options? Where to go for setup / configuration / execution What are some good use cases for RESTful implementation Demo of real world scenarios How to implement a secure / trusted architecture Wrap-up

  • 3PSA

  • 4What is RESTful anyway?

    Representational State Transfer (REST) is a style of software architecture for distributed systems such as the World Wide Web. REST has emerged as the predominant web API design model.

    API BOBJ

  • 5Demo End Result

  • 6What Well Cover

    What is RESTful anyway? Why is RESTful solution better than traditional SDK options? Where to go for setup / configuration / execution What are some good use cases for RESTful implementation Demo of real world scenarios How to implement a secure / trusted architecture Wrap-up

  • 7Why is RESTful solution better than traditional SDK options? Traditional SDKs require supporting libraries to be compiled with

    the custom application and a creates a dependency on the client application with the server.

    RESTFul services just expose HTTP end points with a SIMPLE interface for interacting with the service. GET / PUT / POST / DELETE are all supported

    Example URIhttp:// :/biprws/raylight/v1/documents/

  • 8Pick Your Language

  • 9What are Web Intelligence RESTful Web Services?

    API used for manipulating WebI Documents List / Open / Save / Close Retrieve data from a data provider Schedule Documents

    It cannot be used to create SAP Web Intelligence documents.

  • 10

    RESTful Architecturebase URI, such as http://example.com/resources/ Internet media type for the data. e.g. JSON / XMLstandard HTTP methods (e.g., GET, PUT, POST, or DELETE)hypertext links to reference statehypertext links to reference related resources

    A RESTful Web Service can carry a PAYLOAD this is the DATA that is passed to / from the server

  • 11

    Lets breakdown the process

  • 12

    Lets See It!

  • 13

    What Well Cover

    What is RESTful anyway? Why is RESTful solution better than traditional SDK options? Where to go for setup / configuration / execution What are some good use cases for RESTful implementation Demo of real world scenarios How to implement a secure / trusted architecture Wrap-up

  • 14

    Where to go for setup / configuration / execution

    RESTful SDK is available for the BI Platform 4.x. Crystal Reports for Enterprise (CR4e) RESTful API. Web Intelligence SDK with full parity with REBEAN/RENET is

    supported in 4.1.

    For SAMPLES and Technical guidess http://scn.sap.com/community/restful-sdk

    BI RESTful SDK is installed as part of the BI Platform installation process

  • 15

    What Well Cover

    What is RESTful anyway? Why is RESTful solution better than traditional SDK options? Where to go for setup / configuration / execution What are some good use cases for RESTful implementation Demo of real world scenarios How to implement a secure / trusted architecture Wrap-up

  • 16

    Sample Use Cases for RESTFul BI

    Custom Web Application that Calls WebI Report using RESTful to schedule the report and present the output within the application

    Automated process to run multiple Web Intelligence reports on a set schedule and create EXCEL output files

    Automatic TESTING process that runs reports and monitors systems performance.

    Dynamically switch data providers for a report based on the users profile

    You cannot CREATE objects using platform REST SDK. Use JAVA SDK if this is required!

  • 17

    Sample Use Cases for RESTFul BI

    Custom Web Application that Calls WebI Doc using RESTful to schedule the report and present the output within the application

    Automated process to run multiple Web Intelligence reports on a set schedule and create EXCEL output files

    Automatic TESTING process that runs reports and monitors systems performance.

    Dynamically switch data providers for a report based on the users profile

  • 18

    What Well Cover

    What is RESTful anyway? Why is RESTful solution better than traditional SDK options? Where to go for setup / configuration / execution What are some good use cases for RESTful implementation Demo of real world scenarios How to implement a secure / trusted architecture Wrap-up

  • 19

    Example URIsWebI documents../biprws/raylight/v1/documents

    A WebI document../biprws/raylight/v1/documents/{documentID}

    A WebI documents pages:../biprws/raylight/v1/documents/{documentID}/pages

    WebI document reports:../biprws/raylight/v1/documents/{documentID}/reports

    A WebI document report:../biprws/raylight/v1/documents/{documentID}/reports/{reportID}

  • 20

    Code Example: Logon

    URL: http://localhost:6405/biprws/logon/long

    Payload:{

    "userName": userName, "password": your_password, "auth": authMode

    }

    ReturnsLogon Token

  • 21

    Code Example: Logon

    @MyServer:6400

    tag:sap.com,2010:bip-rs/logon/longLogon Result2013-09-03T21:46:47.360Z

    MyServer:6400@{3&2=10209,U3&2v=MyServer:6400,UP&66=60,U3&68=secEnterprise:Administrator,UP&S9=12,U3&qe=100,U3&vz=yCFAVGKDkzcAIefcqibDE9m8WGhlPyIyPjzijsiChX8,UP}

  • 22

    Using REST Client

  • 23

    Testing Tools

  • 24

    Lets See It!

    RESTFul LIVE Examples

  • 25

    Web Intelligence Extension Points

    Lots of Flexibility

    HTML container (Panel) Interop. with Canvas Undocumented features!

    Source: Example Centigon CMaps integration with Web Intelligence

    Can not place content on main canvas

  • 26

    More WebI Customization

    Custom Panel JQuery Date Picker Custom Refresh button with animation

  • 27

    More WebI Customization

    Custom Panel JQuery Date Picker Custom Refresh button with animation

  • 28

    Lets See It!

    Web Intelligence Extension Points

  • 29

    What Well Cover

    What is RESTful anyway? Why is RESTful solution better than traditional SDK options? Where to go for setup / configuration / execution What are some good use cases for RESTful implementation Demo of real world scenarios How to implement a secure / trusted architecture Wrap-up

  • 30

    Configure WACS Server

  • 31

    Configure Secure Web Server

  • 32

    Configure Secure Web Server

  • 33

    CMC Settings Review

  • 34

    Where to Find More Information

    www.kingfisherinc.com/RESTFulBIWSs Blog describing the details of building components

    Ted Ueda, Scripting Web Intelligence: the RESTful Raylight Web Services http://scn.sap.com/s SCN Blog series

    http://help.sap.com/businessobject/product_guides/sbo41/en/sbo41_webi_restful_ws_en.pdf s Official SAP Documentation

  • 35

    What Well Cover

    What is RESTful anyway? Why is RESTful solution better than traditional SDK options? Where to go for setup / configuration / execution What are some good use cases for RESTful implementation Demo of real world scenarios How to implement a secure / trusted architecture Wrap-up

  • 36

    7 Key Points to Take Home

    RESTful is the new API for custom web applications Supported: BI Platform, WebI, CR4e Unsupported: Crystal Reports, Dashboards, Design Studio Easy to implement Roll out sample code in DEVELOPMENT Be creative with WebI Extension Points Design custom workflows to optimize business processes

    Sample RESTFul Web Services for WebIwww.kingfisherinc.com/SAPInsider2015/RESTful.zip

  • 37

    Your Turn!

    How to contact me:Matt Hawkins

    [email protected]@MattHawkins

    Please remember to complete your session evaluation