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

Re: Dumb (?) Question



Thank you Scott - and I am definitely not disappointed - but I was surprised.


On 2012-04-29, at 2:13 PM, Scott Klement wrote:

> Hi Jon,
> 
> HTTPAPI can receive data and present it to your application in three 
> different ways:
> 
> 1) Raw form, where the bytes are handed to your program via "callback" 
> procedure as they are received off the wire.
> 
> 2) Stream file, where the bytes are saved to a *STMF object.
> 
> 3) XML parsed form, where the data is handed to Expat, which parses it, 
> and calls one of two 'handler' routines, one for the opening/starting 
> tags of each XML element, and one for the closing/ending tags of each 
> XML element.  I have "enhanced" (depending on your viewpoint, I guess) 
> this process so that the character data is buffered up and returned to 
> the ending element handler as an additional parameter.
> 
> I do not currently have a way to return the data as a string, except via 
> the "raw form", where you could easily accumulate it into a string yourself.
> 
> Sorry if that disappoints you.
> 
> 
> 
> On 4/28/2012 7:21 PM, Jon Paris wrote:
>> 
>> I am sure I've seen this in the HTTPAPI but I'm darned if I can find
>> it in the protos or in the list archives. Even tried searching the
>> archives with google - probably not using the right search terms but
>> ...
>> 
>> I want to call a SOAP service with HTTPAPI and simply have it pass me
>> the XML response packet. I don't want to have it parsed by Expat, or
>> placed in a file.
>> 
>> Can someone point me to an example please.
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

Jon Paris

www.partner400.com
www.SystemiDeveloper.com




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