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

Re: Getting an XML parse error and attempting to get the offending xml to show in debug file



Hi Larry,

In order to see what XML you're receiving, I suggest changing from 
http_url_post_xml() to http_url_post().   the latter routine will save 
the response to a file in the IFS, and will not attempt to parse it.

Just look at the IFS file, and you'll see what the XML looks like, and 
perhaps you'll be able to see what's wrong.

Look at the HTTPAPI_H member to see the syntax of http_url_post() so 
you'll know which parameters to pass to it.


Larry Gorlin wrote:
>    Hi,
> 
> 
>    In HTTP_API I'm getting this parse error:
> 
>    XML parse failed at line 1, col 203: not well-formed (invalid token).
> 
> 
>    I'm having a hard time finding how to show the bad XML.  I've seen
>    many posts on this thread telling that Debug must be turned on.  I've
>    included the line "http_debug(*ON);".
> 
> 
>    Is more required to get the xml to show?  I'm only getting the error
>    message in httpapi_debug.txt, no sign of the offending XML.
> 
> 
>    Thanks
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------