<?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: Best stategy for submitting to web service</title><link>https://www.infopathdev.com:443/forums/thread/38889.aspx</link><pubDate>Wed, 25 Feb 2009 06:42:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38889</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38889.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=38889</wfw:commentRss><description>&lt;p&gt;Hi Graeme,&lt;/p&gt;
&lt;p&gt;Your intuition is correct. It&amp;#39;s better to do loose coupling and submit&amp;nbsp;a string. See my &lt;a class="" title="best practices" href="http://www.infopathdev.com/forums/p/10781/38766.aspx#38766"&gt;recent post&lt;/a&gt; in response to Donna for a brief discussion of best practices. Main reason is that you can have one Web service that can be used for multiple InfoPath forms and submission process doesn&amp;#39;t break when the form or the DB changes. To map your XML to SQL, you will need a mapping layer. Install &lt;a class="" title="DBXL" href="http://www.qdabra.com/en/products/DBXL.aspx"&gt;DBXL&lt;/a&gt; and check out our XML to SQL mapping view in our admin tool (DAT) to see how we do this for arbitrarily deep relational tables in SQL. &lt;/p&gt;</description></item><item><title>Best stategy for submitting to web service</title><link>https://www.infopathdev.com:443/forums/thread/38840.aspx</link><pubDate>Tue, 24 Feb 2009 13:34:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38840</guid><dc:creator>Graeme</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=38840</wfw:commentRss><description>&lt;p&gt;I have inherited a form where the submit is handled in code, with various parameters being sent as either &amp;quot;text and child elements only&amp;quot; and some as &amp;quot;XML subtree&amp;quot;.&amp;nbsp; The web method then calls a stored proc that saves the various bits to a database.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It seems to me that it would be better to pass the entire form to the web method in one chunk.&amp;nbsp; But, does this then get passed as one large string which I then have to deal with (possibly in a proc using SQL XML), or should the web method be created based on the Infopath schema so that it receives a rehydrated object from Infopath (not sure how to do that)?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Also, what is the difference between submitting data as string or not (checkbox in the data connection wizard)?&lt;/p&gt;
&lt;p&gt;TIA&lt;/p&gt;
&lt;p&gt;Graeme&lt;/p&gt;</description></item></channel></rss>