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

Re: Parse error when trying to send a SOAP document with http_url_post_xml()

Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>

Hi William,

I don't know what the error text SetError() #66: XML parse failed at line 2,
col 0: no element found" relates to.

IT relates to the results that you're getting back from the Web site. HTTPAPI does not try to parse the stuff you're sending to the web server, so it won't ever get a parse error on the data you're sending.

I suggest posting the same XML input using the http_url_post() subprocedure. Instead of trying to parse the output, it'll just save it to a stream file in the IFS.

Then you can look at it to see what's going on. Once you figure out the problem, you can always switch back to http_url_post_xml().

Also... please don't tell the web server that you're using UTF-8 when you're clearly not! It may "work", since many characters in UTF-8 are the same as those of SBCS ASCII encodings, but technically you're not sending UTF-8 and there's always a chance that this is causing problems.

Consider changing UTF-8 to either US-ASCII or ISO-8859-1, depending on which CCSID you've configured HTTPAPI to convert to (367 = US-ASCII, 819 = ISO-8859-1). Make sure you change it in both places that you're specifying UTF-8.

This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr