Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Creating Web Services with FME Server

1,822 views

Published on

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

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

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

×