Hi All, I am creating an Adobe AIR application that will interact with my Django app. I am currently trying out django-rest-interface that can be found on googlecode. However, there's too much behind-the-scenes stuff django-rest-interface (for the little amount of knowledge I have) and I need more control over the processing of both sent and received data, thus I'm now doing it my own way.
I plan to create django views for: - 1. creating single or multiple new objects of each model (through xml data received via HTTP POST), 2. retrieving single or multiple existing objects of each model (retrieving via pk and retrieving all objects, paged). This single object or multiple objects will be sent as xml when requested via HTTP GET 3. updating single or multiple existing objects of each model (through xml data received via HTTP POST) 4. deleting single or multiple existing objects of each model (through xml data received via HTTP POST) This is not REST, but it gives me the control I need. Thus far I have item no. 2 above sorted out. I just can't figure out how to receive xml data via HTTP POST. (I have only ever used HTTP POST for html forms.) Let's say I have the following xml, how do I send this xml data via HTTP POST? <django-objects version="1.0"> <object pk="1" model="drf.state"> <field type="CharField" name="short_name">TX</field> <field type="CharField" name="name">Texas</field> <field type="BooleanField" name="is_active">1</field> </object> </django-objects> All help is highly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---