Hi Bruce.
Yes, I missed to explain the context of my test. I'm not trying to download a file as part of a web app - rather as part of a set of web services. The web40 demo has a procedure GenerateFile which is similar to the one I've been using in Integrat.
I'm making a call like this (from Postman for API testing) anb expect a file to be received on the client:
http://127.0.0.1:88/GenerateFileIn the procedure of the app I sent, I set the variable
loc:filename for the file to be downloaded as a file within the exe folder. Within the procedure,
p_web._SendFile is then called twice, and the logic for the second call puzzles me - because the
CaseStart: routine won't find a procedure with the same name as the file to be downloaded.
As a last note, this will be used as part of a set of web services, where a client may request to download a file that was previously uploaded or may have been generated by a web service call. So if there is any other way to do a file download, I will like to try it as well. But as said before, this was working perfectly in NT 10, seems it has changed in NT 11.
Thys