consuming rest services with mendixww2.mendix.com/rs/729-zyh-434/images/rest webinar.pdfmendix...

13
Consuming REST services with Mendix

Upload: others

Post on 22-May-2020

14 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Consuming REST services with Mendix

Page 2: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

1. Case introduction

2. How to build a prototype using Mendix

3. Backgrounds on REST

4. Tips & Tricks

5. Q & A

Outline

Page 3: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Get external metadata into Mendix for selecting a song

eCard platform REST Music Metadata

How can we use REST to retrieve song metadata from Spotify?

Page 4: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

1. Extract REST endpoints needed from Spotify API documentation.

2. Figure out the messaging structure to search and collect metadata

3. Build the prototype in Mendix

How to build this prototype using Mendix?

Page 5: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Key concepts REST

Consumer Provider

Page 6: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Key concepts REST

Consumer Provider

• Consumer initiates the call• Provider receives it

Page 7: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Key concepts REST

Consumer ProviderJSON XML

Page 8: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Key concepts REST

Consumer ProviderJSON XML

Consumer consumes a service published by a provider

Page 9: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Key concepts REST

Consumer ProviderJSON XML

Representation in JSON: Representation in XML:

Page 10: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Key concepts REST

Consumer ProviderJSON XML

HTTP

Page 11: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Key concepts REST

Consumer Provider

HTTP

XML

SOAP

Page 12: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

HTTP-based integration methods in Mendix

Mendix terminology: REST Service Web Service App Service Odata Service

Data structures supported:

XML & JSON SOAP (XML) N/A XML

Consume/Publish: Consume only (publish using module)

Consume & publish Consume & publish Publish only

Distinctivecharacteristic / typical usage

Popular recently for public open APIs

Strict on typing, popular inenterprise contexts

Plug-and-play Mendix integration

Very easy to publish, suitable for BI/reporting purposes

Available from Mendix version:

6.6.0 natively, lower versions using module

2.x 5.x 5.18

Page 13: Consuming REST services with Mendixww2.mendix.com/rs/729-ZYH-434/images/REST webinar.pdfMendix terminology: REST Service Web Service App Service Odata Service Data structures supported:

Benefits of integrating using Mendix