creating web services with fme server
DESCRIPTION
See more FME World Tour 2014 presentations at www.safe.com/recap2014TRANSCRIPT
![Page 1: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/1.jpg)
CONNECT. TRANSFORM. AUTOMATE.
Creating Web Services with FME Server
![Page 2: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/2.jpg)
Web services
![Page 3: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/3.jpg)
Create REST Web Services with FME Server
![Page 4: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/4.jpg)
Web Services
HTTP/HTTPS JSON or XML URL HTTP Parameters
![Page 5: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/5.jpg)
Web Service Standards
Specific URL patterns Specific HTTP parameters Specific XML and JSON payloads
![Page 6: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/7.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/8.jpg)
Three Examples
OGC WXS Junaio Augmented Reality Subscription Management
![Page 9: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/9.jpg)
FME WxS Workspace
GetCapabilities Request
Response XML
GetFeature Request
Response GMLFME Server
OGC WXS
![Page 10: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/10.jpg)
Augmented Reality
![Page 11: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/11.jpg)
Augmented Reality
Define a channel by providing a service URL
![Page 12: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/12.jpg)
Augmented Reality
FME Server Data Streaming service URL: http://fmeserver.com/fmedatastreaming/junaio/
surrey_businesses.fmw
![Page 13: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/13.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/14.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/15.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/16.jpg)
Augmented Reality
![Page 17: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/17.jpg)
Augmented Reality
Published Parameters Request URL
![Page 18: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/18.jpg)
Augmented Reality
Specific response data format: AREL XML
![Page 19: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/19.jpg)
Augmented Reality
XMLTemplater transformer
![Page 20: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/20.jpg)
Subscription ManagementExample of Implementing a REST API
![Page 21: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/21.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/22.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/23.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/24.jpg)
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](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/25.jpg)
Let’s return JSON like the cool kids
Subscription ManagementExample of Implementing a REST API
![Page 26: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/26.jpg)
Subscription ManagementExample of Implementing a REST API
![Page 27: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/27.jpg)
Request URL
Subscription ManagementExample of Implementing a REST API
![Page 28: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/28.jpg)
JSONTemplater transformer
Subscription ManagementExample of Implementing a REST API
![Page 29: Creating Web Services with FME Server](https://reader035.vdocuments.site/reader035/viewer/2022062300/55618dd9d8b42ae27d8b4de2/html5/thumbnails/29.jpg)
FME Server makes creating web services easy