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

RE: New To HTTPAPI - XML Request



Should work. Sounds similar to EXAMPLE12.

Post debug if you can't figure out (xxx things you don't want us to see) and we can better advise.

Since it is Start/End that seems to be the issue a couple of DSPLY 'Start'; DSPLY 'End'; would verify if they are getting invoked. Code along with debug would be good thing in this case.



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Ray Worrell
Sent: Monday, July 29, 2013 10:31 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: New To HTTPAPI - XML Request

Hi.  Thanks for taking the time to read this message, and thanks in advance
for any advice you may offer.

I'm trying to create an RPG program to consume an XML document created by a
web request.  For example, if you enter the URL into your browser, the
browser renders an XML page as the result.  I would like to consume this
XML using Scott's wonderful tool.

I've used the tool in the past and have been successful at doing things
like web service calls.  I'm confused in this instance, however, because
I'm not needing to place a web service call.  I just want to browse to a
specific URL and consume the results.  As a result, I'm not sure which API
to use.

rc = http_get_xml('http://url.url.url'
                      : %paddr(StartOfElement)
                      : %paddr(EndOfElement)
                      : *NULL );

Is this the correct API to use?  I issue the call, and rc comes back as 1,
but it seems the procedures StartOfElement or EndOfElement are never
invoked.

Any help would be greatly appreciated.

Thanks!

Ray.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------