Hey all,
I’m having some difficulty in getting my XML-INTO operation to work for me,
what’s weird is, it works fine when it’s receiving the proper data stream,
but when an error occurs, I have to receive those values into another
structure. The application doesn’t die, it just doesn’t drop anything into
the structure. I setup the path to end at FareQuoteSuperBB_9, and the
values should be dropping into the TransactionErrorCode structure (which is
all text), but nothing happens. If you could point out where I went
terribly wrong…
TIA
Contents of the file:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<SubmitXmlResponse xmlns="
http://webservices.galileo.com">
<SubmitXmlResult>
<FareQuoteSuperBB_9 xmlns="">
<TransactionErrorCode>
<Domain>Procedure</Domain>
<Code>5014</Code>
</TransactionErrorCode>
</FareQuoteSuperBB_9>
</SubmitXmlResult>
</SubmitXmlResponse>
</soapenv:Body>
</soapenv:Envelope>
RPG code:
XMLoptions = 'case=any +
doc=file +
allowextra=yes +
allowmissing=yes +
path=soapenv:Envelope/+
soapenv:Body/+
SubmitXmlResponse/+
SubmitXmlResult/+
FareQuoteSuperBB_9';
reset TransactionErrorCode;
XML-into TransactionErrorCode %xml(RespFile:XMLoptions)
Values of the structure and attributes:
EVAL TransactionErrorCode
TRANSACTIONERRORCODE.DOMAIN = ' '
TRANSACTIONERRORCODE.CODE = ' '
ATTR TransactionErrorCode
TYPE = RECORD, LENGTH = 100 BYTES
ATTR TransactionErrorCode.domain
TYPE = FIXED LENGTH STRING, LENGTH = 50 BYTES
ATTR TransactionErrorCode.code
TYPE = FIXED LENGTH STRING, LENGTH = 50 BYTES
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.5/792 - Release Date: 5/6/2007 9:01
PM
As an Amazon Associate we earn from qualifying purchases.