Automatically upload xml form to ODK Aggregate

Hi there,

Anyone with an idea how to do this?

I am working on a php script that produces a well-formed xml document.
I want this to be uploaded directly (without having to output the document
to my computer and upload it manually to my Aggregate server).

Is there a way to do this?

Kind regards,

Wiebe

Hi Wiebe,

Form submission is pretty straightforward -- it's basically an HTTP post.
https://bitbucket.org/javarosa/javarosa/wiki/FormSubmissionAPI

The Java code that does the post in ODK Collect is at
https://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/tasks/InstanceUploaderTask.java?repo=collect

If you want more than form submission (i.e., form downloads), you can
implement the ODK Briefcase/Aggregate API.
http://code.google.com/p/opendatakit/wiki/BriefcaseAggregateAPI

Please send further development questions you have to
opendatakit-developers@googlegroups.com.

Yaw

ยทยทยท On Fri, Nov 23, 2012 at 1:06 AM, Wiebe de Wolf wrote: > Hi there, > > Anyone with an idea how to do this? > > I am working on a php script that produces a well-formed xml document. > I want this to be uploaded directly (without having to output the document > to my computer and upload it manually to my Aggregate server). > > Is there a way to do this? > > Kind regards, > > Wiebe > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en