Skip to main content
Question

Getting Result values via REST with FME Server

  • February 8, 2019
  • 3 replies
  • 71 views

Hi there! I am currently taking the REST-Workshop, provided by safe.

Now i have quiet a simple task: I want to call a Workspace on FME Server via REST and in the Response there should be a certain value, that the Workspace created based on published parameters send with my request. I am working with Postman and basically you can imagine my needs like this:

I want to give two numbers via REST to a Workspace on FME Server, these two are added up and the sum will be send back in the Response. So it is synchronus, right?

My workspace already works, and i can start it with REST, but how do i get my stuff in a response without making another REST-Call?

 

Thank you very much for thinking about my problem!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

david_r
Celebrity
  • February 11, 2019

It's not exactly the REST API, but you could use the fmedatastreaming service for this:

http://docs.safe.com/fme/html/FME_Server_Documentation/Content/ReferenceManual/service_datastreaming.htm

You could e.g. stream the results to a JSON writer.


  • Author
  • February 11, 2019

Thats what i did now. And it works quiet well! But is there a way to use the actual REST API for this?


david_r
Celebrity
  • February 11, 2019

Unfortunately I don't think that's currently possible, although I'd be very glad if someone could prove me wrong.