Environment -
Infopath 2007
Form would be published on MOSS 07 using Infopath Forms Services. All the forms would be accessed using the browser.
I have a scenario where I have to save the entire form data as XML and populate the same form with this XML when the user visits in future.
- I have a web service with methods
getFormData(String sXML) //We submit the form to this webservice. I get the entire form data in the structured XML and I store it locally on the file system.
String populateForm() //This method is called whenever the form is loaded (Receive Data). Returns the XML stored locally as a String.
Query - How do we populate/initialize this from with the webservice which returns the structured XML?
FYI - If I set this saved XML file as the sample data file location(using Forms Options setting), than the form gets populated when I preview it.