[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SV: Dumb (?) Question
Hi,
sometimes the soap response is like this in a .Net webservice response:
soap data.....xml response as a string ....soap data.
"The inner xml" can then be parsed with xml-into.
The beleave there are archives data that describes this.
Best regards,
Magne
__________________________________________________________________
Fra: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx på vegne av Scott Klement
Sendt: sø 29.04.2012 20:13
Til: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Emne: Re: Dumb (?) Question
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:
[1]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. 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
-----------------------------------------------------------------------