Extracting information from a webservice

Pierre-Yves pingou at pingoured.fr
Thu Jan 17 06:20:20 PST 2013


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.

> > What's easier to extract? My guess would be "we have
> > an XML parser, let's just use that", but I really don't know...
> >
> 
> i would use XML, but it depends on the structural requirements, and
> how the structure will grow in the future..

Let's go with xml then, I'll adjust the website to do that then.

Pierre



More information about the subsurface mailing list