incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Bonser <>
Subject Re: _update, XML, and POST
Date Fri, 14 May 2010 19:17:57 GMT
On Fri, May 14, 2010 at 3:51 AM, Cory Zue <> wrote:
> Hi folks,
> I am prototyping an app to receive an XML POST and convert the data to
> a couch object.  Based on what I've read so far it seems like the
> _update method is designed to let you do exactly this.  However, I
> have some questions (note that I haven't tried any of this yet, am
> just basing my information off documentation on-line.
> From here: I
> understand that "To invoke a handler, one must "PUT" the document
> against the handler function itself (POST does not seem to be
> supported)."  Was there any reasoning behind this decision or was it
> just a feature that never made it?  Not allowing these things to run
> on POSTs seems to drastically reduce their utility for no reason
> that's obvious to me.

Actually, I'm pretty sure that statement is no longer true. I was
testing update handlers recently and it accepted POSTs just fine.

> Second, is there a community recommended XML to JSON library to
> perform the data transfer?  I've been evaluating several (listed
> below), none of which seem to be highly active, recent, or well
> established.  Anyone done this before and want to make a
> recommendation?  I'm surprised that there's not a de-facto choice for
> this.
> thanks,
> Cory

Paul Bonser

View raw message