I have an RPGLE program that uses Scott Klement's HTTP_API to send a SOAP request to a Web Service. No groaning about SOAP, it's what the vendor supports and I have no choice. Anyway, I'm not real sure how to parse the NVP. For example, when I look at the HTTP log produced on the iSeries using WRKLNK, I see the element that contains the NVP and it looks like this:
Those are Linefeeds in between, FYI.
Can anyone point me to a routine for parsing the NVP? I am not opposed to building my own but didn't know if someone already had an open source type version. Any help would be greatly appreciated.
Code:
<c:nvpReply>reasonCode=102 decision=REJECT requestToken=alsdkjfIFHDlAGJADGlkdsgGAHdGLh requestID=9999999999999999</c:nvpReply>
Can anyone point me to a routine for parsing the NVP? I am not opposed to building my own but didn't know if someone already had an open source type version. Any help would be greatly appreciated.
Comment