[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parser error
Hi Richard,
The error message is basically telling you that the data you've received
from your web service is not a valid XML document.
At least for debugging purposes, please try changing http_url_post_xml()
to simply http_url_post(). This will download the response to a stream
file in the IFS (and won't try to parse it as an XML document) so you
can inspect what you're receiving.
The parameters to http_url_post() are a little different from
http_url_post_xml(), so please look at HTTPAPI_H to learn about the
parameters.
If that doesn't set you on the right path, please make a debug log.
Right now the only information we have is that the response from the web
service doesn't start with a valid XML element.
On 5/24/2010 8:32 PM, Richard Jagger wrote:
> I'm new to the world of XML messages so I'm probably making some
> obvious errors.
>
> I'm trying to send a request to a company website and get a response
> in the form of a `000' code . I'm using program example19 as a base.
> I've constructed my SOAP XML message and confirmed with the owners of
> the site that the XML format is correct. I'm using the command
>
> rc = http_url_post_xml(
> 'http://xxxx.xxxxxxxxx.com.au/xxxxxx/xxxxxxx'
> : %addr(SOAP) + 2
> : %len(SOAP)
> : *NULL
> : %paddr(Incoming)
> : %addr(status)
> : HTTP_TIMEOUT
> : HTTP_USERAGENT
> : 'text/xml'
> : 'http:// xxxx.xxxxxxxxx.com.au/xxxxxx/xxxxxxx');
>
> And getting a -1 response.
>
> Following the code in debug , in http_url_post_xml the process drops
> through the `select' statement to the `other' option. The error occurs
> directly after this statement when wwRC = 1 and wkElemRoot.errcode =
> 3 .
>
> The error message is `XML parse failed at line 1, col 0: no element
> found'.
>
> I've obviously messed something up but I'm not sure what. Any ideas?
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------