Hi,
Let's see if you can help me.
From an external application, files hosted on a SAGE X3 volume are being downloaded. The URL used is as follows (GET method):
http://«Server:Port»/sdata/x3/erp/FOLDER/BDOC('C_AVOLFIL~%C2%A8~CONTENTS~%C2%A8~INVOICES~%C2%A8~UKSI0999.pdf')
It's exactly the same url that is used in SAGE X3 to download a file:
And it works great. The response is in a binary format, just as it works in the browser.
The problem is that each call consumes license. When a RestFul call is made, the Syracuse session disappears after two minutes (I wonder where that Setup is set). But when I make a request to download a file, a standard request is created (not Restful) and the session expiration time is set to 4 hours (that's how it's defined in our nodelocal.js).
My question is: Do you know any other REST APIs to download files from SAGE X3 in Restful mode? Can I create a specific timeout for a user? What do you think I could do?
As a last option, I'm thinking of creating my own REST API to download files, but I'd rather avoid it.
Thanks,
Nacho