<?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: Get/Set Webservice</title><link>https://www.infopathdev.com:443/forums/thread/17758.aspx</link><pubDate>Wed, 09 Nov 2005 08:23:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17758</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17758.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17758</wfw:commentRss><description>Another reason why we developed the Database Accelerator! :)&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Get/Set Webservice</title><link>https://www.infopathdev.com:443/forums/thread/17757.aspx</link><pubDate>Tue, 08 Nov 2005 14:33:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17757</guid><dc:creator>fredarwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17757</wfw:commentRss><description>vt,&lt;br /&gt;i understand you because i have the same problem, sadly using the datadapter wizard to set up ur dataset and create automatically all ur routines(insert,update,delete) not is the way.&lt;br /&gt;I do the next:&lt;br /&gt;Firs i create all my object and routines by code (nothing typed).&lt;br /&gt;And for the submit data when infopath return dataset to my webservice as dataset i check in a loop each row and check a special identity field, if my field has cero i insert if not i update for example. or u can analize each row of dataset if it haschanged to apply a update. the point is that using pure code u can solve ur problem.&lt;br /&gt;I hope this help u.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fred Darwin Villareal</description></item><item><title>Re: Get/Set Webservice</title><link>https://www.infopathdev.com:443/forums/thread/17756.aspx</link><pubDate>Mon, 24 Oct 2005 23:50:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17756</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17756</wfw:commentRss><description>Well, it looks like I just had to read one of the labs I constantly tell people to read. -&lt;a target="_blank" href=http://msdn.microsoft.com/office/understanding/infopath/training/default.aspx?pull=/library/en-us/odc_ip2003_tr/html/odc_inf_lab_09.asp&gt;http://msdn.microsoft.com/office/understanding/infopath/training/default.aspx?pull=/library/en-us/odc_ip2003_tr/html/odc_inf_lab_09.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Seems as if you you do:&lt;br /&gt;&lt;br /&gt;[WebMethod] // A method to expose on the Web service&lt;br /&gt;public DataSet ReceiveDataSet()&lt;br /&gt;{&lt;br /&gt;// get the data from the database and put it in the DataSet&lt;br /&gt;sqlDataAdapter1.Fill(dataSet11);&lt;br /&gt;// return the DataSet object with the filled data&lt;br /&gt;return dataSet11;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;And then do:&lt;br /&gt;&lt;br /&gt;[WebMethod] // A method to expose on the Web service&lt;br /&gt;public void SubmitDataSet(DataSet ds)&lt;br /&gt;{&lt;br /&gt;// Pass the DataSet to ADO.NET; database updates automatically&lt;br /&gt;sqlDataAdapter1.Update(ds);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;All of your updates, deletes, and inserts will be taken care of for you.&lt;br /&gt;&lt;br /&gt;Not sure why this confused me.  InfoPath is doing a bunch of work for you for free.</description></item><item><title>Get/Set Webservice</title><link>https://www.infopathdev.com:443/forums/thread/17494.aspx</link><pubDate>Mon, 24 Oct 2005 18:00:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17494</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17494.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17494</wfw:commentRss><description>There is this thread I was about to answer that opened a larger question for myself.&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1115&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1115&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Instead of high jacking that person's thread, thought I would start a new one.&lt;br /&gt;&lt;br /&gt;Lets say I had two webservice GetDataSet and SetDataSet.  The Get will return a dataset that will be bound to a repeating table that returns a single table from a DB.  The Set method will set a dataset with all of the changes.  This includes insert, updates and deletes.  I can I make the SetDataSet commit all of the insert, updates and deletes in a single call to the Set webservice.&lt;br /&gt;&lt;br /&gt;I would be interested in knowing how someone implemented a solution to do that.  Here is my point.  If I were writing a .NET solution, I would call .GetChanges() on my DataSet and then execute those against the database using a DataAdapater.  &lt;br /&gt;&lt;br /&gt;If an InfoPath form calls GetDataSet in a webservice, the dataset will be returned, the user will make some changes and then when I call SetDataSet() on the webservice.  The data will be sent back up to the webservice.  But how would I know exactly which rows have modified data (new, modified or deleted).  My concern would be if I the GetDataSet returned 100 rows of data, the user only makes a change to a single row and then SetDataSet is called, I do not want to run 100 update statements.  I just need to do one.  I think I could write a solution easliy if I were writing .NET managed code in the InfoPath form.  But lets say I did not want to do that.</description></item></channel></rss>