LANSA Web-API - Model-B configuration - PDF

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Joerg Hamacher
Posts: 120
Joined: Thu Feb 11, 2016 12:01 am

LANSA Web-API - Model-B configuration - PDF

Post by Joerg Hamacher »

Hi again,

at a customer we have a working Model-B configuration to access JSON-Web-APIs that we've created with VL.
These APIs are located on an IBMi, the webserver is a Windows PC with IIS.
Access to the API is e.g. via an URL like this: https://IBMi-IPadress:portnumber/LANSA-API/Request...

For this Model B configuration, no LANSA HTTP server is active on the IBMi.

Now the customer wants to have access to PDF files that are located in an IFS folder on the same IBMi.
Is it possible to realize an access to a PDF file like https://IBMi-IPadress:portnumber/LANSA-API/PDF/mypdf.PDF?
Which configuration files have to be adapted for this? Can this be done inside of LANSA Web Administrator or in IIS on the webserver PC?

Many thanks in advance,
Joerg
PatrickF
Posts: 30
Joined: Thu Nov 26, 2015 1:31 pm

Re: LANSA Web-API - Model-B configuration - PDF

Post by PatrickF »

In Multi-tier (Model B) Web Administrator there is an option to get files from a remote backend server https://docs.lansa.com/15/en/lansa085/i ... p_0340.htm

Serve Files from this directory
If Allow Files to be served from Web Server is enabled, you must specify where to fetch the files from. Either choose the default location: {LANSA_INSTALL_ROOT}/tmp/fetch-files or specify a location.
For security reasons, only files within the specified directory will be served.
Note that if you enable this option, you must also enable the corresponding Web Server option.
By default these options are disabled.
Post Reply