[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: XML parse failed
Thanks,
I did see the announcement about the new version, but I haven't gotten
around to installing it yet. I will do that and a try what you
explained.
I did something similar, I think, to what you said about using
http_url_post() to see the response, except I wasn't consuming a web
service. I was just posting a url that was a web page and passing a
parameter so the response is in html, but I think the idea is along the
same lines.
Getting back to my original post, I changed the url of the post and
added the soap action and that eliminated the errors and everything is
working wonderfully. Up until now I hadn't had to include the
SOAPAction.
I really enjoy using HTTPAPI! I seem to learn something new every time I
use it.
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Wednesday, September 27, 2006 11:18 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: XML parse failed
Hi Griz,
Yes, that would explain the 404 error. The http_url_post_xml() API has
the URL (the asmx one) for the first parameter, and the SOAPAction (the
GetInfoByZIP part) for the last parameter.
I'm glad you found info in the debug file, that's always one of the
first
places to look.
Another idea, if you want to see what the server is actually returning,
is
to replace http_url_post_xml() with http_url_post(). The parameters are
slightly different, so see HTTPAPI_H to see what the parameters are.
When
you use http_url_post(), it won't attempt to parse the XML, but instead
will download it to a file.
In fact, in the latest version of HTTPAPI (the one I released this past
weekend) you can parse the XML from an IFS stream file instead of
parsing
it directly from the server, which will make this type of error easier
to
detect. You would just use http_url_post() to download the XML file, and
http_parse_xml_stmf() to parse the stream file that you downloaded.
Makes
it easier to see which part is failing, and easier to see the data
you're
getting...
--
--------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------