WSO2 Product Release Webinar: WSO2 Data Service Server 3.5.0

Preview:

Citation preview

WSO2 Data Services Server 3.5.0

Chanika GeeganageWSO2

Product Release Webinar

Agenda

o Introducing WSO2 Data Services Servero Key Features of WSO2 DSSo What is new in WSO2 DSS 3.5.0o Demonstrate new features/ Improvements

WSO2 Data Services Server

o Data is the most important asset in an organization

o Can be from different datasourceso Can have different client applicationso Requirement: a unified layer between client and

the datasourceo Solution: WSO2 Data Services Server

WSO2 Data Services Server

o Open source – Apache License v2.0o Well defined request/responseo Data Store specific configurationso Loose coupling (app & data store)o Supports multiple data sourceso Secured access to serviceso Expose Data as Web Services or REST

Resources

WSO2 Data Services Server

o Data Federation Supporto Transactional Data Access and Serviceso Data Transformation and Validationo High Performance, High Availability, Scalability

and Stabilityo Lightweight, Developer-Friendly and Easy-to-

Deployo Manage and Monitor Data Services

WSO2 DSS

Data Service Description Language

o WSO2's Language for defining data services.o Maps service requests to queries operating on

data store.o Exposing service as REST resource or SOAP

service.o Maps query results to XML schema definitionso Validation, Eventing configurations etc..

WSO2 Data Service Server 3.5.0

New Features and Improvementso Exposing a datasource as REST services using

OData.o Supporting OAuth2 authentication for Google

spreadsheets.o Boxcarring in a session-less manner.o Extending authorization provider for data

services.

OData Support

o OData protocol version 4.0.0o OASIS standards (http://www.odata.org/)o Can expose data source as an odata service.o Mainly supports for CRUD operations.o RDBMS data sources and Cassandra.o Supports upto Intermidiate Conformance Level

OData Support

OData - Advantages

o An open standard (championed by Microsoft, but available for many other platforms: http://www.odata.org/ecosystem/).

o URI based querying capability with a very rich query language.

o Extensible. o OData standardizes the request/response

formats in JSON and AtomXml.o Describes entity Data Model - Entities and their

Relationships.

Limitations

o Only for RDBMS and Cassandrao Does not support federation across multiple

datasource (ex: Nested Queries)o Does not support stored procedures

Demo - OData

Google Spreadsheet Datasource

o Expose data in Google spreadsheets as services

OAuth2 Support - Google Spreadsheet

o Google no longer supports authentication through username and password.

o Supports the new authentication mechanism - OAuth2.

o When the visibility is Private, credentials should be provided,o Client IDo Client Secreto Refresh Token

Demo - Google Spreadsheet

Request box - Sessionless Boxcarring

o Can call multiple operations via a single service call.

o No need to maintain the invoking session in client side.

o Both boxcarring and request box is disabled in a data service by default.

o Can enable both these options by clicking the Enable Boxcarring check box.

o From WSO2 DSS 3.5.0 boxcarring is deprecated.

Request Box

o Is a wrapper element, which wraps the operations you need to call.

o Can put any number of operations within that “request_box” element any number of times.

o The order of operations depend on the flow you need to follow.

o Returns the result of the last operation you have put in the “request_box” wrapper element.

o Acts as a single operation.

Extending Authorization Provider

o Connect to third party authorisation provider to do role based filtering.

o Define per dataserviceo Can :

o implement - org.wso2.carbon.dataservices.core.auth.AuthorizationProvider OR

o extend - org.wso2.carbon.dataservices.core.auth.AbstractAuthorizationProvider

Extending Authorization Provider

Roadmap for next release

o Provide data service operation orchestration capability (ex: complex operations in a data service flow)

o More lightweight solutiono Web based solution for creating data services

flow

Q/A