[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (To) Large xml element
Thanks Scott !!
works like a charm..
dino
--------------------------------------------
On Wed, 2/24/16, Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:
Subject: Re: (To) Large xml element
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wednesday, February 24, 2016, 11:44 PM
Dino,
There is a routine called HTTP_xmlReturnPtr()
that can change the way
the XML parser
returns data to your program. When you use that, it will
pass your callback a data structure
containing a pointer and a length
instead
of passing a string. This allows for elements to be up to
16mb
in length.
Please go to the following page and search
HTTP_xmlReturnPtr() and you
can see
previous discussions and learn more about it:
http://www.scottklement.com/archives/ftpapi/
Good luck!
On 2/24/2016 2:48 PM, dino
muzic wrote:
> Hello everybody
>
> in example14.rpgle in
LIBHTTP Scott use the following callbacks
>
>
> D StartOfElement PR
> D UserData
* value
> D depth
10I 0 value
> D name
1024A varying const
> D path
24576A varying
const
> D attrs
* dim(32767)
> D
const
options(*varsize)
> D
EndOfElement PR
> D UserData
* value
> D depth
10I 0 value
> D name
1024A varying const
> D path
24576A varying
const
> D value
65535A varying const
> D attrs
* dim(32767)
> D
const
options(*varsize)
>
>
>
>
and the
>
>
http_url_post_xml(..) function.
>
>
> How can I use the
above callback routines if the value returned from server
for a particular xml element exceeds 64KB ?
>
>
>
Thanks
> dino muzic
>
>
>
-----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------