Need: To implement a method in a Powerbuilder web service to save a file in a network directory receiving the file (blob) and the full path as parameters.
Issues
Scenario 1: Method implemented with Powerbuilder file functions.
Problem: It works when using debug and doesn't work with the published webservice. Powerbuilder does not recognise the directories for file writing, even though the IIS_IUSRS user has full access permission.
Scenario 2: As an alternative to replace scenario 1, the Powerbuilder web service started to consume another web service implemented in .Net with the functionality described above.
Problem: The alternative works well when the Integration Powerbuilder web service is installed on a server with Windows Server 2008. When it is installed on a server with an operating system Windows Server 2016, even after replicating all settings, an error occurs with the following message: "Exception has been thrown by the target of an invocation. ---> Attempted to read or write protected memory. This is often an indication that other memory is corrupt.".
After analysing the messages provided by Windows event viewer, it is believed that the problem occurs when creating the Soap connection and instantiating the service.
Please I request support to find out a solution that works whatever the server is.
I use PB 2017 yet.
Thank you.