[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXPAT - XML parsing issue



Hi Scott,

Thanks for your prompt reply. On the V5R4 machine I get the same problem with any of the example programs in LIBHTTP.

On the v5r4 machine I installed the suite of programs as per your readme file, using the option to use the pre-compiled expat program (as I have no QSYSINC so the compile was failing). On V6R1 I used the install option that compiled the expat.

I haven't had time to try to understand the complexities of the various programs used by this tool so I can't quite understand why the log file shows the returned XML in readable format, but the parser doesn't. Could be be something to do with the encoding? In the soap request I use encoding "iso-8859-1" but the encoding in the xml in the log file is "utf-8". This is identical on the two servers but it's just the V5R4 one that doesn't work.

Cheers

Sent from my iPhone

On 9 Nov 2016, at 7:14 AM, Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:

David,

I've not heard of a situation where the 'name' parameter would be unreadable.   You say this only occurs on V5R4...  I don't know of any reason why that would affect anything.  Can you tell me how to make it happen so I can debug it and discover the cause?

-SK


> On 11/8/2016 1:14 AM, David Lynch wrote:
>    Hi.
> 
> 
>    I'm trying to test http_url_post_xml based on some of the test programs
>    in LIBHTTP. I've got it working correctly on one server (V6R1) but
>    can't get it to work on another server (V5R4). On both servers I have
>    used http_debug(*ON) and I can see the log in /tmp/httpapi_debug.txt,
>    and I can see a successful result in the returned xml in the log file.
> 
> 
>    The procedure named "Incoming" in the examples obviously gets called
>    for each element in the returned XML. On the V5R4 machine I'm finding
>    (in debug) that the "name" parameter is not readable and therefore the
>    program is not finding a match to a return a result for that element.
> 
>    Any help you could offer would be greatly appreciated.
> 
>    Cheers,
> 
>    David Lynch
> 
> 
> 
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------