Skip to main content
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

 

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
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

 


This Q&A is related:

 

https://knowledge.safe.com/questions/78094/how-to-publish-a-workspace-and-lct-to-fme-server-u.html

Reply