<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx</link><description>Here’s your problem: You want to use a stored procedure in a database to access your data through InfoPath, but you don’t really want to have to write script for every query to change the stored procedure’s query parameters. We’ve all been there. 
 Well</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#9169199</link><pubDate>Wed, 03 Dec 2008 12:45:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9169199</guid><dc:creator>Daniil</dc:creator><description>&lt;p&gt;OK, I solved the Problem:&lt;/p&gt;
&lt;p&gt;Procedur: Select ... FOR XML AUTO, ELEMENT&lt;/p&gt;
&lt;p&gt;Endpoint:&lt;/p&gt;
&lt;p&gt; WEBMETHOD ...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; (&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;FORMAT = ALL_RESULTS&lt;/p&gt;
&lt;p&gt;.... )&lt;/p&gt;
&lt;p&gt;The &amp;quot;problem&amp;quot; now is, that I get the whole information from the endpoint, like SQLRowCount, SQLMessage, SQLTranscription ... . But I need just the DataFields :/ Has anybody an idea how to do this?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Daniil&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9169199" width="1" height="1"&gt;</description></item><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#9164272</link><pubDate>Tue, 02 Dec 2008 15:02:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9164272</guid><dc:creator>Daniil</dc:creator><description>&lt;p&gt;@toroklaszlo&lt;/p&gt;
&lt;p&gt;Do you have an example for an sql statement with the &amp;quot;for XML&amp;quot; clause?&lt;/p&gt;
&lt;p&gt;My InfoPath Form doesn't like my statement: &lt;/p&gt;
&lt;p&gt;&amp;quot;SELECT Name FROM dbo.NameTable FOR XML AUTO&lt;/p&gt;
&lt;p&gt;My EndPont returns no DataFields :/ &amp;nbsp; ... &amp;nbsp;just a group&lt;/p&gt;
&lt;p&gt;Thanky in advance!!&lt;/p&gt;
&lt;p&gt;Daniil&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9164272" width="1" height="1"&gt;</description></item><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#8897318</link><pubDate>Tue, 26 Aug 2008 16:35:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8897318</guid><dc:creator>toroklaszlo</dc:creator><description>&lt;p&gt;Yes, I can confirm that this way of calling a ws through an endpoint worked in my case. What does it mean exactly that your form 'doesn't like the return format of sqlxml'?&lt;/p&gt;
&lt;p&gt;Laszlo&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8897318" width="1" height="1"&gt;</description></item><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#8879671</link><pubDate>Tue, 19 Aug 2008 23:23:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8879671</guid><dc:creator>JSB35</dc:creator><description>&lt;p&gt;Laszlo, any more information on this possible solution? My form doesn't like the return format of SqlXML? Have you confirmed that this works?&lt;/p&gt;
&lt;p&gt;Thanks if you can add anything to this great informatinon!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8879671" width="1" height="1"&gt;</description></item><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#8878826</link><pubDate>Tue, 19 Aug 2008 17:18:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8878826</guid><dc:creator>toroklaszlo</dc:creator><description>&lt;p&gt;Hi folks,&lt;/p&gt;
&lt;p&gt;I think the problem is the structure of 'sqlresultstream' complextype, generated by sql server. When sql server responses to a ws request (through an endpoint), always gets back a node with this type. This complextype contains some other types. One of these types is SqlRowset. By default, an 'sqlresultstream' can contain unbounded number of 'SqlRowset', defined by generated wsdl. I think Infopath could accept only one 'SqlRowset', as result of an sql query (maybe it identifies 'SqlRowset' as DataSet?). &lt;/p&gt;
&lt;p&gt;Based on my experience, when Infopath Forms Server calls a ws like this, it ignores the response, whatever it is. The rich client could process the response.&lt;/p&gt;
&lt;p&gt;Possible solution:&lt;/p&gt;
&lt;p&gt;Use the SELECT in your stored proc you would like to call thorugh an endpoint with 'FOR XML' clause, if you can.&lt;/p&gt;
&lt;p&gt;In this case, the response node will contain an instance of 'SqlXml' type(also part of sqlresultstream complextype), instead of 'SqlRowset' type. Form Server can correctly process responses contain 'SqlXml' types. &lt;/p&gt;
&lt;p&gt;Laszlo&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8878826" width="1" height="1"&gt;</description></item><item><title>InfoPath and Yukon: The Details</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#5396457</link><pubDate>Thu, 11 Oct 2007 05:40:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5396457</guid><dc:creator>Dragon-China</dc:creator><description>&lt;p&gt;InfoPathandYukon:TheDetails Inarecentpost,Itoucheduponthereasonswhyyoumightwantt...&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5396457" width="1" height="1"&gt;</description></item><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#4997349</link><pubDate>Wed, 19 Sep 2007 17:19:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4997349</guid><dc:creator>mkoslof</dc:creator><description>&lt;p&gt;Hello there&lt;/p&gt;
&lt;p&gt;I really &amp;nbsp;hope the author of this article is still around because this was great information :). &amp;nbsp;However, I am in desperate need of some help/clarification.&lt;/p&gt;
&lt;p&gt;K, can we use this approach with InfoPath Forms Services? &amp;nbsp;In browser enabled Infopath documents is this still possible. &amp;nbsp;This part left me guessing:&lt;/p&gt;
&lt;p&gt;&amp;quot;Using SQL Server 2005 rowsets with browser-enabled form templates is currently not a supported scenario; we’ll keep you posted on possible workarounds.&amp;quot;&lt;/p&gt;
&lt;p&gt;Do you mean you can't pass in the optional FORMAT parameter with the value of ROW_SET or do you mean you can't use it at all.&lt;/p&gt;
&lt;p&gt;The reason I am asking is I tried to implement this and it doesn't seem to work in Browser enabled forms. &amp;nbsp;If I edit the exact same document in InfoPath (either before being published to a forms library or after) it works great. &amp;nbsp;I did the proper administrative install/approval through Central Administration and I've tried using udc connection files in the local site collection - - nothing seems to work.&lt;/p&gt;
&lt;p&gt;So am I missing something? &amp;nbsp;Or is it just not possible. &amp;nbsp;I am struggling to get a definitive answer on this.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;MK&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4997349" width="1" height="1"&gt;</description></item><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#4404918</link><pubDate>Thu, 16 Aug 2007 00:02:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4404918</guid><dc:creator>brandtsmith</dc:creator><description>&lt;p&gt;Problem...how do you represent the namespace in infopath (jscript) to read the fields in a repeating table that come from this web service?&lt;/p&gt;
&lt;p&gt;I can display the web service data no problem...just can't get the syntax right to read the fields?????&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4404918" width="1" height="1"&gt;</description></item><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#4371441</link><pubDate>Mon, 13 Aug 2007 22:47:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4371441</guid><dc:creator>brandtsmith</dc:creator><description>&lt;p&gt;Great way to filter very large data sets into a manageable ddlb as a secondary data source...keeps me out of VS...and I don't have to write all that script in IP!!! :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4371441" width="1" height="1"&gt;</description></item><item><title>re: Using SQL Server 2005 Web Services with InfoPath</title><link>http://blogs.msdn.com/b/infopath/archive/2006/12/20/using-sql-server-2005-web-services-with-infopath.aspx#3412287</link><pubDate>Wed, 20 Jun 2007 00:38:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3412287</guid><dc:creator>uppershores</dc:creator><description>&lt;p&gt;I successfully created a Web Service (SQL Server 2005) using the above technique and it works great populating a list box in the InfoPath preview mode. &amp;nbsp;When I publish the form to SharePoint, only the first row populates the list box rather than the entire record set. &amp;nbsp;I think the issue might be related to security but I do not know how to resolve this. &amp;nbsp;Is this an InfoPath, SharePoint, or SQL Server issue, and where should I start?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3412287" width="1" height="1"&gt;</description></item></channel></rss>