couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anh <>
Subject Re: Connect to flex
Date Sun, 16 May 2010 16:27:57 GMT
Can't you use rewrites and virtual hosts for this usecase?

I.e. Virtual host to remove the db name and rewrite root, and then a  
rewrite from /clientaccess.xml to an attachment or show function.

On May 16, 2010, at 8:28 AM, Jim Woodgat<> wrote:

> On Sat, May 15, 2010 at 1:21 PM, Nils Breunese <>  
> wrote:
>> Anything that can do HTTP requests can talk to CouchDB directly.  
>> I'm not a Flex developer, but it seems that Flex can do this. The  
>> responses will be JSON by default (other formats supported through  
>> show and list functions), but it seems JSON support is also  
>> available for Flex, so I guess that should all just work.
> The problem is that flex and silverlight look for certain .xml files
> to be read directly from the http server from the root location, ie
> needs to
> return the client access policy for silverlight.  Since CouchDB won't
> natively support this you need to either need to modify CouchDB to
> read additional files from /usr/share/couchdb/www (which isn't very
> hard, just copy the code than handles favicon, you just have to
> manually patch it in whenever you want to update couchdb) or put a
> front end in front of CouchDB so you can serve the access .xml files
> and proxy the CouchDB calls.
> -- 
> Jim Woodgate

View raw message