<?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: Need the ID back for a successful submitted Web Service InfoPath Form????</title><link>https://www.infopathdev.com:443/forums/thread/25384.aspx</link><pubDate>Thu, 03 Jan 2008 16:59:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25384</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=25384</wfw:commentRss><description>&lt;p&gt;Hi moojjoo and sorry for the late reply!&lt;/p&gt;
&lt;p&gt;Yes, you can get the returned ID.&amp;nbsp; I assume you are using a &amp;quot;Submit&amp;quot; data connection in InfoPath, which makes it impossible to see the return statement unless you are using code to submit the data connection.&amp;nbsp; If you want to add code, look at the .OutputLocation property on the WebServiceAdapter2 class.&lt;/p&gt;
&lt;p&gt;Otherwise, you can convert your data connection to a &amp;quot;Receive&amp;quot; data connection (the first question in the data connection wizard), populate the queryFields with the appropriate information, and then the return ID will be&amp;nbsp;underneath the&amp;nbsp;dataFields node once the query has been issued.&lt;/p&gt;
&lt;p&gt;The two data connections work exactly the same under the covers of InfoPath, but they are just handled a little differently by the designer and allow you to do different things with them.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Need the ID back for a successful submitted Web Service InfoPath Form????</title><link>https://www.infopathdev.com:443/forums/thread/24990.aspx</link><pubDate>Fri, 07 Dec 2007 17:18:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24990</guid><dc:creator>moojjoo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=24990</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Instead of using xml navigation I am utilizing a class that was created after running xsd.exe.&amp;nbsp; Great tool and makes coding a lot quicker due to intellsense.&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;However, submitting the data into the DB is not a problem, but for the world of me although I have the following:&lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&lt;font size="3"&gt;&lt;span style="COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;public&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;int&lt;/span&gt; SubmitForm(&lt;span style="COLOR:#2b91af;"&gt;myFields&lt;/span&gt; newForm, class blah)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font size="3"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font size="3"&gt;CODE to INSERT RECORD and GET sumID from stored procedure via the @@IDENTITY&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font size="3"&gt;return sumID&lt;/font&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt; 
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;font size="3"&gt;I don’t know how to populate a field after the submit in the XML file (InfoPath)&amp;nbsp;so the next time if the field has a value I know to perform an update on the record based on the sumID.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;Once I get that trick firgured out I would love to know how to automate a delete if a user deletes the file from the SharePoint library.&amp;nbsp; I have the DB well built so if I run T-SQL on the sumID the record will cascade and delete all other child records.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;I am close to finishing this solution and was wondering if anybody had done this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>