<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Submit new records &amp;amp; later retrieve a record by ID</title><link>https://www.infopathdev.com:443/forums/thread/17917.aspx</link><pubDate>Wed, 01 Nov 2006 16:52:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17917</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17917</wfw:commentRss><description>For #1) You will have to write code to copy from the secondary data source into the main data source.  &lt;br /&gt;&lt;br /&gt;For #2) The easiest way to do this is to open a stub XML file with a node with the ID and then onLoad have the InfoPath form query the DB with the parameter and then do #1.&lt;br /&gt;&lt;br /&gt;Also, another way to approach this is to redo the form as connected to the Web Service which will eliminate the code and make your Main Data Source directly work with the DB.  Unfortunately, to do this you have to create a new form that works with the WS and then copy paste all your views and redo your logic (not fun).</description></item><item><title>Submit new records &amp; later retrieve a record by ID</title><link>https://www.infopathdev.com:443/forums/thread/17562.aspx</link><pubDate>Tue, 31 Oct 2006 21:49:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17562</guid><dc:creator>niteshambastha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17562</wfw:commentRss><description>I posted this in the "newbie" section before but then I found this section as a btter fit. I will try to delete the other post next.&lt;br /&gt;&lt;br /&gt;Anyways, this is what I have done so far: &lt;br /&gt;&lt;br /&gt;1. Designed an InfoPath form based on an Xml schema. &lt;br /&gt;2. Created a submit connection to a web service and passed the entire form XML to the web service. &lt;br /&gt;The web service stores the XML in SQL database in a text column and assigns it an ID (another ID column). &lt;br /&gt;This has been tested - I can see the XML in the database. &lt;br /&gt;3. Create a receive connection to the same web service (another method) that can take an ID and return the corresponding XML.&lt;br /&gt;&lt;br /&gt;This also works - I can view the XML being returned as a text in a textbox (done for testing purposes only). Please note that I had hard-coded the ID for which the form XML was retrieved. &lt;br /&gt;&lt;br /&gt;This is what I would like to do next: &lt;br /&gt;1. I would like to set/replace the form's entire XML with what is returned by the web service. &lt;br /&gt;2. From another user interface (say, an ASP.NET GridView) I would like to pass the ID as parameter to the InfoPath form and the form should use this ID to receive the corresponding XML. Then it should do what is requested in #1 above i.e. set/replace the form's entire XML with the XML returned by the web service.&lt;br /&gt;&lt;br /&gt;I will appreciate any help on this. &lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>