Skip to main content
Question

Publishing to FME Server using REST


Forum|alt.badge.img
Hi,

 

 

I'm trying to publish a workspace to FME Server using REST without success.

 

 

There are actually two ways of doing that:

 

http://docs.safe.com/fme/html/FME_Server_Documentation/Default.htm#REST_API_Doc/PUT%20repositories%20repository1.htm#_Toc279139163

 

http://docs.safe.com/fme/html/FME_Server_Documentation/Default.htm#REST_API_Doc/POST%20repositories%20repository.htm#_Toc279139164

 

 

Does anyone succeeded to publish a workspoace using any of those methods and if yes, can you provide a sample piece of code that is working (any language but prefered one is vbscript).

 

 

Thanks,

 

Larry

 

3 replies

sigtill
Supporter
Forum|alt.badge.img+24
  • Supporter
  • July 2, 2013
I assume you have read this?:

 

 

Required Parameters

Accessing the REST interface requires a security token, which can be generated using the FME Server token service. The security token is a string of encrypted information sent between client and server to manage authentication.

For information about requesting a security token, see Token Service in the FME Server Reference Manual or FME REST Security in the FME Server Developer's Guide.

The following example is a GET request to list all available repositories, and includes the security token parameter:

httpRequest.open("GET", "/fmerest/repositories.json?token="+token_, true);

 

http://docs.safe.com/fme/html/FME_Server_Documentation/Default.htm#REST/REST_Required_Parameters.htm

Forum|alt.badge.img
  • Author
  • July 2, 2013
Yes I read that.

 

 

I fact, we are doing lots of things using REST but we are unable to publish a workspace.

 

 

I've already a support call opened with SAFE but I was wondering if someone actually succedded.

 

 

Larry

 


Forum|alt.badge.img

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