Skip to main content
14-Alexandrite
September 24, 2020
Solved

How to send files to another server

  • September 24, 2020
  • 2 replies
  • 3183 views

Dear all,

 

I want to send files which created on ThingWorx to another server.

The flow is below and want to know how to do "2".

 

1. Create a file on ThingWorx.

2. Send it to another server.

 

Kindly let us know.

Best answer by mnarang

To transfer from one ThingWorx server (From repository) to another different server you would need a protocol to connect and transfer content over it. If your another server does have a REST end point you can try ThingWorx content loader functions to do this. Otherwise you can write your custom utility/extension which will pick up the files from one TWX repository and place it to your desired server location or else you can have a ThingWorx SDK on another server and can transfer file over WS protocol (This would be least recommended as you will be using SDK only for transfer purpose). 

2 replies

5-Regular Member
September 24, 2020

If it is about sending the created file on one TWX server to another TWX server, you can use federation and do the transfer - https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/index.html#page/ThingWorx/Help/Composer/System/Subsystems/FileTransferSubsystem.html
This is one of the way, there can be other ways as well.

14-Alexandrite
September 24, 2020

Thank you for your reply.

 

I want to send files(xml file) from one TWX server to another server( not TWX server ).

Destination server is application server and the sent file will be used for application running on it.

 

Could you kindly tell us which solution is best ( better ) for this purpose ?

mnarang5-Regular MemberAnswer
5-Regular Member
September 24, 2020

To transfer from one ThingWorx server (From repository) to another different server you would need a protocol to connect and transfer content over it. If your another server does have a REST end point you can try ThingWorx content loader functions to do this. Otherwise you can write your custom utility/extension which will pick up the files from one TWX repository and place it to your desired server location or else you can have a ThingWorx SDK on another server and can transfer file over WS protocol (This would be least recommended as you will be using SDK only for transfer purpose). 

Community Manager
October 1, 2020

Hi @Yoshihiko.N.

 

If you feel your question was answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in the community!

 

Regards.

 

--Sharon