×
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.
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
As an Amazon Associate we earn from qualifying purchases.