I have an Extend 9.1.1 program (PDFSTATEMENT) which produces an XML file, using XML extensions (XML EXPORT FILE). This program is called from a calling program (DOPDF2) that passes just 3 arguments to it. It works correctly, producing an XML file (and then a PDF as a second step)
When I call the same program to produce an XML file, from a program that is invoked by a call to an XBIS web service, with the same 3 arguments as in the first case, the XML EXPORT FILE statement fails with status code 13 - which means the creation of the XML file failed.
If the specified XML file already exists (even if it is a 1-byte file with a space in it), then the XML EXPORT FILE command executes successfully and creates the XML file! However, if the XML file does not already exist, the create fails.
I have changed permissions on the bin folder containing the ACU programs, and on the BIN\XML subfolder where the XML file is created, to have full access for "Everyone" - same results.
I don't understand why the XML EXPORT FILE fails - is there some option which needs to be set to allow XML EXPORT FILE to be created if it does not exist (like an OPTIONAL clause in Cobol) work when called from a program that has been invoked by XBIS?