|
On Jun 27, 2025, at 12:02 PM, dfreinkel@xxxxxxxxxxxxxxxxx wrote:
I have the following structure returned by a web service. I am on a v7.4
system.
The named spaces are not supported by IBMi, at least on this release.
How can I get this to work?
TIA, Darryl Freinkel
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S=http://schemas.xmlsoap.org/soap/envelope/>
<S:Body>
<ns2:sendFaxResponse xmlns:ns2=http://ws.xm.faxserver.com/>
<result>
<broadcastId>AC2ED502-7B51-4CDF-8FD6-410D6C02F15A-12143998-BR</broadcastId>
<transactionId>AC2ED502-7B51-4CDF-8FD6-410D6C02F15A-12144001-OF</transaction
Id>
</result>
</ns2:sendFaxResponse>
</S:Body>
</S:Envelope>
I have created the following defined data structure.
Dcl-ds Envelope qualified;
Dcl-DS Body ;
Dcl-ds sendFaxResponse;
Dcl-DS Result ;
broadcastId varchar(128);
transactionId varchar(128);
End-DS;
End-DS;
end-ds;
End-DS;
I have tried using the following ways to get the data into the data
structure.
data-into sendFaxResponse %data('': 'case=convert +
countprefix=num_ +
allowmissing=yes allowextra=yes')
%parser('MDRFRAME(PARSER)':handle);
or
xml-into Envelope %xml(Envelope.body.sendFaxResponse: 'case=any
ns=*remove');
Darryl Freinkel
A4G
Telephone: 770.321.8562
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.