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

Re: Embedded XML



Scott,

I'm trying  to use XmlReturnPtr().

I have some problems to define the data structure. ( found in this link http://www.scottklement.com/archives/ftpapi/200709/msg00047.html)

Then, the 'value' parameter that's passed to your end element handler will no longer be a VARYING string. instead, it'll be a data structure that consists of a pointer in the first 16 bytes, and a 4-byte binary integer (10i 0 in RPG) that constains the length of the data at the pointer. Ths integer is in bytes 17-20 of the data structure.

Can you help me (or someone else ) ?

Thanks

Franck Peter a écrit :
Scott,

I use 1.23 HTTPAPI version.

Sometimes I can receive 64k bigger documents so I'm very interested by the use of

HTTP_XmlReturnPtr().

Can you explain me a little or send me a source with HTTP_XmlReturnPtr()?

Thanks


Scott Klement a écrit :
Hello Franck,

It's works fine when the embedded xml file is lower than 32767A ( in SaveEmbed proc ) but when it's bigger ... It fails
For me, it works when the document is 64k or smaller, but when it's bigger it fails unless I use the alternative support via HTTP_XmlReturnPtr()

If yours is failing at 32767, you may be using an older version of HTTPAPI. What version are you using? (Check the HTTPAPI_VERSION constant in HTTPAPI_H)

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




begin:vcard
fn:Franck Peter
n:Peter;Franck
org:SDV LI;Informatique
email;internet:mrs.infosys@xxxxxxx
tel;work:04.42.02.44.66
tel;fax:04.42.89.42.89
version:2.1
end:vcard

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