Top Banner
CONNECT. TRANSFORM. AUTOMATE. Creating Web Services with FME Server
30

Creating Web Services with FME Server

May 24, 2015

Download

Technology

Safe Software

See more FME World Tour 2014 presentations at www.safe.com/recap2014
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Creating Web Services with FME Server

CONNECT. TRANSFORM. AUTOMATE.

Creating Web Services with FME Server

Page 2: Creating Web Services with FME Server

Web services

Page 3: Creating Web Services with FME Server

Create REST Web Services with FME Server

Page 4: Creating Web Services with FME Server

Web Services

HTTP/HTTPS JSON or XML URL HTTP Parameters

Page 5: Creating Web Services with FME Server

Web Service Standards

Specific URL patterns Specific HTTP parameters Specific XML and JSON payloads

Page 6: Creating Web Services with FME Server

The FME Bits

Data Streaming service Workspace

FME_SERVER_REQUEST_URI parameter FME_SERVER_REQUEST_HEADERS parameter JSON/XML Transformers

Page 7: Creating Web Services with FME Server

The Workspace

The workspace implements the service standards All of the transformation abilities of FME FME Workbench’s ease of use

Page 8: Creating Web Services with FME Server

Three Examples

OGC WXS Junaio Augmented Reality Subscription Management

Page 9: Creating Web Services with FME Server

FME WxS Workspace

GetCapabilities Request

Response XML

GetFeature Request

Response GMLFME Server

OGC WXS

Page 10: Creating Web Services with FME Server

Augmented Reality

Page 11: Creating Web Services with FME Server

Augmented Reality

Define a channel by providing a service URL

Page 12: Creating Web Services with FME Server

Augmented Reality

FME Server Data Streaming service URL: http://fmeserver.com/fmedatastreaming/junaio/

surrey_businesses.fmw

Page 13: Creating Web Services with FME Server

Augmented Reality

Specific URL patterns defining the type of request: http://<host>/<service>/pois/search http://<host>/<service>/pois/event http://<host>/<service>/pois/visualsearch http://<host>/<service>/tools/modelencrypt http://<host>/<service>/tools/trackingxml

Page 14: Creating Web Services with FME Server

Augmented Reality

Specific HTTP parameters for filtering the response: http://<host>/<service>/pois/search?l=

(location) http://<host>/<service>/pois/search?p=

(search perimeter) http://<host>/<service>/pois/search?m=

(max features)

Page 15: Creating Web Services with FME Server

Augmented Reality

Request from Junaio Augmented Reality Browser: http://fmeserver.com/fmedatastreaming/junaio/

surrey_businesses.fmw/pois/search?l=54.40,-120.01,200&p=3000&m=40

Page 16: Creating Web Services with FME Server

Augmented Reality

Page 17: Creating Web Services with FME Server

Augmented Reality

Published Parameters Request URL

Page 18: Creating Web Services with FME Server

Augmented Reality

Specific response data format: AREL XML

Page 19: Creating Web Services with FME Server

Augmented Reality

XMLTemplater transformer

Page 20: Creating Web Services with FME Server

Subscription ManagementExample of Implementing a REST API

Page 21: Creating Web Services with FME Server

Let’s manage subscriptions to FME Server topics using a web service

Subscription ManagementExample of Implementing a REST API

Page 22: Creating Web Services with FME Server

Entities: devices, email addresses, WebSocket streams

Topics: places to send messages to and read messages from

Subscriptions: agreement for an entity to receive messages from a topic

Subscription ManagementExample of Implementing a REST API

Page 23: Creating Web Services with FME Server

Let’s make it RESTful by using the URL pattern to specify the resource to act on

Subscription ManagementExample of Implementing a REST API

Page 24: Creating Web Services with FME Server

The Subscription Manager REST API:

subscription_manager.fmw/entity/<id>/add?type=<email|apns|gcm|websockets>subscription_manager.fmw/subscription/<topic_name>/<id>/addsubscription_manager.fmw/subscription/<topic_name>/<id>/add?confirm_token=******subscription_manager.fmw/subscription/<topic_name>/<id>/deletesubscription_manager.fmw/subscription/<topic_name>/<id>/delete?confirm_token=******

Subscription ManagementExample of Implementing a REST API

Page 25: Creating Web Services with FME Server

Let’s return JSON like the cool kids

Subscription ManagementExample of Implementing a REST API

Page 26: Creating Web Services with FME Server

Subscription ManagementExample of Implementing a REST API

Page 27: Creating Web Services with FME Server

Request URL

Subscription ManagementExample of Implementing a REST API

Page 28: Creating Web Services with FME Server

JSONTemplater transformer

Subscription ManagementExample of Implementing a REST API

Page 29: Creating Web Services with FME Server

FME Server makes creating web services easy

Page 30: Creating Web Services with FME Server

Thank You!

Questions?

For more information: [email protected] www.safe.com