<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Populating entire form with a single webservice</title><link>https://www.infopathdev.com:443/forums/thread/29117.aspx</link><pubDate>Tue, 03 Jun 2008 07:05:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29117</guid><dc:creator>himanshu_chauhan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29117.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29117</wfw:commentRss><description>&lt;p&gt;Environment -&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Infopath 2007&lt;/p&gt;&lt;p&gt;Form would be published on MOSS 07 using Infopath Forms Services. All the forms would be accessed using the browser.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;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. &lt;/p&gt;&lt;p&gt;- I have a web service with methods &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 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.  &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String populateForm()&amp;nbsp;  //This method is called whenever the form is loaded (Receive Data). Returns the XML stored locally as a String.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Query - How do we populate/initialize this from with the webservice which returns the structured XML?&lt;br /&gt; &lt;/p&gt;&lt;p&gt;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. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>