The FormsetService provides a set of operation to query the forms inside a Formset. All the APIs take the Resource
representing Formset will result in an exception (InvalidFormsetPathException). Some of the APIs also require a
Form Number to query data w.r.t a particular Form. The FormNumber must be an integer between 1 and maximum Form
Number in that Formset (whose path is provided as first argument). Unable to provide a valid Form Number will
result in a InvalidFormNumberException.
Returns the PrefillJSON of a particular form (represented by formNumber) in a formset (represented by its
formset Resource). May return null if failed to get data root.
The dataRef is assumed to be a valid URL that returns XML and doesn't requires any
authentication. The Form is merged with the xml (returned by making a request to the URL) and the merged JSON
(PrefillJSON) is returned.
dataRef - URL where the xml data is present
prefill JSON of a particular form represented by form number in the given form set
Returns the data xml for the formset. The xml contains the submitted information (rendered forms and current form
number). Current Form Number is added optionally if the bKeepSubmittedFormNumber is true, otherwise it is