CONNECT. TRANSFORM. AUTOMATE.
Creating Web Services with
FME Server
Web services
Create REST Web Services with FME Server
Web Services
 HTTP/HTTPS
 JSON or XML
 URL
 HTTP Parameters
Web Service Standards
 Specific URL patterns
 Specific HTTP parameters
 Specific XML and JSON payloads
The FME Bits
 Data Streaming service
 Workspace
 FME_SERVER_REQUEST_URI parameter
 FME_SERVER_REQUEST_HEADERS paramete...
The Workspace
 The workspace implements the service standards
 All of the transformation abilities of FME
 FME Workbenc...
Three Examples
 OGC WXS
 Junaio Augmented Reality
 Subscription Management
FME WxS
Workspace
GetCapabilities Request
Response XML
GetFeature Request
Response GML
FME Server
OGC WXS
Augmented Reality
Augmented Reality
Define a channel by providing a service URL
Augmented Reality
FME Server Data Streaming service URL:
 http://fmeserver.com/fmedatastreaming/junaio/sur
rey_businesses...
Augmented Reality
Specific URL patterns defining the type of request:
 http://<host>/<service>/pois/search
 http://<host...
Augmented Reality
Specific HTTP parameters for filtering the response:
 http://<host>/<service>/pois/search?l=
(location)...
Augmented Reality
Request from Junaio Augmented Reality Browser:
 http://fmeserver.com/fmedatastreaming/junaio/sur
rey_bu...
Augmented Reality
Augmented Reality
Published Parameters Request URL
Augmented Reality
Specific response data format:
 AREL XML
Augmented Reality
XMLTemplater transformer
Subscription Management
Example of Implementing a REST API
Let’s manage subscriptions to FME Server topics using a
web service
Subscription Management
Example of Implementing a REST...
Entities: devices, email addresses, WebSocket streams
Topics: places to send messages to and read messages
from
Subscripti...
Let’s make it RESTful by using the URL pattern to specify
the resource to act on
Subscription Management
Example of Implem...
The Subscription Manager REST API:
subscription_manager.fmw/entity/<id>/add?type=<email|apns|gcm|websockets>
subscription_...
Let’s return JSON like the cool kids
Subscription Management
Example of Implementing a REST API
Subscription Management
Example of Implementing a REST API
Request URL
Subscription Management
Example of Implementing a REST API
JSONTemplater transformer
Subscription Management
Example of Implementing a REST API
FME Server makes creating web services easy
Thank You!
 Questions?
 For more information:
 info@safe.com
 www.safe.com
Upcoming SlideShare
Loading in …5
×

Creating Web Services with FME Server

1,375 views
1,154 views

Published on

See more FME World Tour 2014 presentations at www.safe.com/recap2014

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,375
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
28
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Junaio provides an interface to configure channels. You have to provide a URL to get the data fromhttps://www.dropbox.com/s/fok3cg3hu7fadyj/Screenshot%202014-03-05%2015.45.46.png
  • Demo:Opengmail and login to fmeserver@gmail.compassword:freethefmeOpen the page that corresponds to your tour group:subscription_manager_east.htmsubscription_manager_west.htmsubscription_manager_best.htmRun through the links.FME Server REST API credentials: Username: aaron Password: spartan
  • Creating Web Services with FME Server

    1. 1. CONNECT. TRANSFORM. AUTOMATE. Creating Web Services with FME Server
    2. 2. Web services
    3. 3. Create REST Web Services with FME Server
    4. 4. Web Services  HTTP/HTTPS  JSON or XML  URL  HTTP Parameters
    5. 5. Web Service Standards  Specific URL patterns  Specific HTTP parameters  Specific XML and JSON payloads
    6. 6. The FME Bits  Data Streaming service  Workspace  FME_SERVER_REQUEST_URI parameter  FME_SERVER_REQUEST_HEADERS parameter  JSON/XML Transformers
    7. 7. The Workspace  The workspace implements the service standards  All of the transformation abilities of FME  FME Workbench’s ease of use
    8. 8. Three Examples  OGC WXS  Junaio Augmented Reality  Subscription Management
    9. 9. FME WxS Workspace GetCapabilities Request Response XML GetFeature Request Response GML FME Server OGC WXS
    10. 10. Augmented Reality
    11. 11. Augmented Reality Define a channel by providing a service URL
    12. 12. Augmented Reality FME Server Data Streaming service URL:  http://fmeserver.com/fmedatastreaming/junaio/sur rey_businesses.fmw
    13. 13. 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
    14. 14. 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)
    15. 15. Augmented Reality Request from Junaio Augmented Reality Browser:  http://fmeserver.com/fmedatastreaming/junaio/sur rey_businesses.fmw/pois/search?l=54.40,- 120.01,200&p=3000&m=40
    16. 16. Augmented Reality
    17. 17. Augmented Reality Published Parameters Request URL
    18. 18. Augmented Reality Specific response data format:  AREL XML
    19. 19. Augmented Reality XMLTemplater transformer
    20. 20. Subscription Management Example of Implementing a REST API
    21. 21. Let’s manage subscriptions to FME Server topics using a web service Subscription Management Example of Implementing a REST API
    22. 22. 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 Management Example of Implementing a REST API
    23. 23. Let’s make it RESTful by using the URL pattern to specify the resource to act on Subscription Management Example of Implementing a REST API
    24. 24. The Subscription Manager REST API: subscription_manager.fmw/entity/<id>/add?type=<email|apns|gcm|websockets> subscription_manager.fmw/subscription/<topic_name>/<id>/add subscription_manager.fmw/subscription/<topic_name>/<id>/add?confirm_token=**** subscription_manager.fmw/subscription/<topic_name>/<id>/delete subscription_manager.fmw/subscription/<topic_name>/<id>/delete?confirm_token=** Subscription Management Example of Implementing a REST API
    25. 25. Let’s return JSON like the cool kids Subscription Management Example of Implementing a REST API
    26. 26. Subscription Management Example of Implementing a REST API
    27. 27. Request URL Subscription Management Example of Implementing a REST API
    28. 28. JSONTemplater transformer Subscription Management Example of Implementing a REST API
    29. 29. FME Server makes creating web services easy
    30. 30. Thank You!  Questions?  For more information:  info@safe.com  www.safe.com

    ×