Consultor Eletrônico



Kbase P150910: 4GL/ABL: WRITE-XML root node name blank if returned frm AppServer procedure
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   14/08/2009
Status: Unverified

SYMPTOM(s):

4GL/ABL: WRITE-XML root node name blank if returned frm AppServer procedure

WRITE-XML generated document root node name is blank if DATASET is returned by a remote AppServer procedure to the WebClient or 4GL/ABL Client.

The WRITE-XML root node name is set to blank if the DATASET is returned by running the same procedure remotely on the AppServer.

When the DATASET is returned by running the procedure remotely on the AppServer, the first two lines of the XML document look like:
<?xml version="1.0"?>
< xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

When run in WebClient mode, the generated XML document root node starts with "< xmlns:xsi.... ", that is without the 'prodataset ' name.

FACT(s) (Environment):

The WRITE-XML root node name is set to 'ProDataSet' if the DATASET is returned by a locally run procedure.
When the DATASET is returned by running the SAME procedure locally, the first two lines of the XML document look like:
<?xml version="1.0"?>
<ProDataSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
All Supported Operating Systems
OpenEdge 10.1B

CAUSE:

Bug# OE00189534

FIX:

None at this time. A workaround is to explicitly assign the DATASET name before invoking the WRITE-XML method. For example:
phdsIO:NAME = "dsCust".
hdsIO:WRITE-XML( "file", "DocName.xml" ).