Extracting information from a webservice

Lubomir I. Ivanov neolit123 at gmail.com
Thu Jan 17 06:24:00 PST 2013


On 17 January 2013 16:20, Pierre-Yves <pingou at pingoured.fr> wrote:
> On Thu, Jan 17, 2013 at 04:13:50PM +0200, Lubomir I. Ivanov wrote:
>> On 17 January 2013 04:33, Dirk Hohndel <dirk at hohndel.org> wrote:
>> > Pierre-Yves <pingou at pingoured.fr> writes:
>> >
>> >> What I was wondering is if I should look at exporting the information in xml in
>> >> addition to the json I use now. I might make more sense / be easier for the
>> >> client to parse xml rather than json. Since I have done neither in C, I'm
>> >> calling for your wisdom (as it might mean adjusting the webservice before trying
>> >> to do something in the client).
>> >
>> > I haven't done this from C, either. Has anyone written a webservice
>> > interface from C?
>>
>> i've done that a long time ago.
>>
>> libsoup can be used, which is pretty straight forward...
>> http://csoap.sourceforge.net/
>
> I think this would be a bit overkill (having a doap webservice), the website
> store all the information, expose it via it's API, what we need in the client is
> simply logic to call a url, load the output and deal with it.
>

libcurl + libxml2 then?
http://curl.haxx.se/libcurl/c/simple.html

lubomir
--


More information about the subsurface mailing list