[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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...
--
Scott Klement http://www.scottklement.com
On Wed, 27 Sep 2006, Grizzly Malchow wrote:
> I think my problem is that I didn't post correctly. The Soapaction is
> "http://www.webserviceX.NET/GetInfoByZIP". I was using that url when I
> was posting, but I think I should have been using the url
> "http://www.webserviceX.NET/uszip.asmx during the post and adding the
> other url to my http header.
>
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------