× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.