Skip to main content
Solved

Send source data to FME server 2013 via post using REST


Forum|alt.badge.img
I have found the nice example of sending source data to fme server via post in this article:

 

http://fmepedia.safe.com/articles/How_To/Send-Source-Data-to-FME-Server-with-HTTP-POST

 

 

I have tired

 

I have tried to use the rest interface of FME server 2013 instead, but this does not work. Is this not supported, or am I missing something?

 

 

Works: POST /fmejobsubmitter/<repository>/<workspace>?...

 

Error: POST /fmerest/repositories/<repository>/<workspace>/run.json?...

Best answer by offermann

I also tried the REST interface v2 on FME Server 2014, no luck: POST request is not supported.

 

 

As a workaround, I use fmejobsubmitter and append query param opt_responseformat=json to get a json response which I can then further process in my client. 

 

 

POST /fmejobsubmitter/<repository>/<workspace>?opt_responseformat=json
View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

Forum|alt.badge.img
  • July 31, 2014
Hi Stefan

 

Did you try this one which is a POST

 

/transformations/commands/transactdata/< repository >/< workspace >

 

 

The API doc example is limited in size but I think the API itself does not have this limit.

Forum|alt.badge.img
  • Author
  • August 4, 2014
Hi Ken, I tried that, but the error message says POST is not supported on FME Server 2013 SP3 Build 13528 Win32.

 

 

Request:

 

 POST /fmerest/transformations/commands/transactdata/<repository>/<workspace>.fmw.json?token=<token> HTTP/1.1
 Reponse:

 

 {   "serviceResponse": {     "requestURI:"/fmerest/transformations/commands/transactdata/<repository>/<workspace>.fmw",     "token": "",      "statusInfo": {        "message": "POST request is not supported."      }   }
 

 

 


Forum|alt.badge.img
  • Author
  • Best Answer
  • August 4, 2014
I also tried the REST interface v2 on FME Server 2014, no luck: POST request is not supported.

 

 

As a workaround, I use fmejobsubmitter and append query param opt_responseformat=json to get a json response which I can then further process in my client. 

 

 

POST /fmejobsubmitter/<repository>/<workspace>?opt_responseformat=json

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings