|
input xml which needs to parsed for encodedtokenexchange field using either
xml into or xml-sax :-
i tried attached code but it's resulting in compilation errors.
sample input xml:-
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><TokenExchangeResponse xmlns="
http://schemas.nav.gov.hu/OSA/1.0/api" xmlns:ns2="
http://schemas.nav.gov.hu/OSA/1.0/data
"><header><requestId>XXXXXXX6614</requestId><timestamp>2019-10-22T09:53:40.541Z</timestamp><requestVersion>1.1</requestVersion><headerVersion>1.0</headerVersion></header><result><funcCode>OK</funcCode></result><software><softwareId>R1RL002AAAAAAAAAAA</softwareId><softwareName>string</softwareName><softwareOperation>LOCAL_SOFTWARE</softwareOperation><softwareMainVersion>string</softwareMainVersion><softwareDevName>string</softwareDevName><softwareDevContact>string</softwareDevContact><softwareDevCountryCode>HU</softwareDevCountryCode><softwareDevTaxNumber>string</softwareDevTaxNumber></software><encodedExchangeToken>u3VtNgfyWU9faZc3Iaa8ZWbE5UZCfmC17yA4MyW0ghflt9dNQNDpCcgMZiG/kXPE4vv2CHL93B4iKiODHxxdVA==</encodedExchangeToken><tokenValidityFrom>2019-10-22T11:57:16.646+02:00</tokenValidityFrom><tokenValidityTo>2019-10-22T12:02:16.646+02:00</tokenValidityTo></TokenExchangeResponse>
Thanks
---------- Forwarded message ---------
From: Rishi Seth <rishiseth99@xxxxxxxxx>
Date: Wed, Oct 30, 2019 at 11:51 AM
Subject: parsing varying length field from XML file using RPGLE program
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Currently I am just trying to extract fixed length field called
'encodedExchangeToken'
in my RPGLE program but unable to extract it using XML INTO and it keeps
giving
me compilation error and I am unable to extract it's value from the
attached input XML file here
also if possible can you please advise if this field's length will vary,i
mean as it may have have varying
length data inside it then how will we be able to extract it's value using
XML-SAX considering current scenario
here.Please find my sample program and sample input xml attached here also
compilation errors for more details.
As an Amazon Associate we earn from qualifying purchases.
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.