Sample transformation (SampleData XML)
SyncWebServiceV2 uses Microsoft .Net DataSet XML serialization to synchronize sample and quota information from the server to the client. The client stores sample and quota as MDD and DDF files, and synchronizes the files with the server. The MobileSyncWebService transforms the DataSet XML to a simple SampleRecords XML, and expects sample updates from the client as SampleRecords XML.
The mobile application can also pass SampleRecords XML to the MobileSyncWebService via a POST to the /Projects/PROJECT/SampleData URL. When the mobile application initiates a POST (rather than a GET), it can identify its records and the server sends only new or modified samples.
The SampleRecords XML functions as follows:
▪POST to /Projects/PROJECT/SampleData.
▪Returned from /Projects/PROJECT/SampleData.
▪POST as part of the RespondentData XML with /Projects/PROJECT/RespondentData/.
See also