<?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: InfoPath 2010 ASMX Web Service - Only Returning One Row of DataSet</title><link>https://www.infopathdev.com:443/forums/thread/85646.aspx</link><pubDate>Thu, 27 Dec 2012 12:11:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85646</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85646.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=85646</wfw:commentRss><description>&lt;p&gt;Very glad to hear that you found a solution.&lt;/p&gt;&lt;p&gt;A bit of advice: if you&amp;#39;re going to go as far as writing your own code to query your database, please use &lt;a href="http://www.dotnetperls.com/sqlparameter"&gt;SqlParameter&lt;/a&gt;s and save yourself the horror of having your database wiped out with SQL injection.&lt;/p&gt;&lt;p&gt;And if you find that you need to query your database with web services a lot, please consider checking out the QueryDB web service included in our &lt;a href="http://www.qdabra.com/en/products/DBXL.aspx"&gt;DBXL&lt;/a&gt; web service suite, which can save you loads of time you&amp;#39;d otherwise need to spend writing, maintaining, and debugging your own special-purpose&amp;nbsp;code.&lt;/p&gt;</description></item><item><title>Re: InfoPath 2010 ASMX Web Service - Only Returning One Row of DataSet</title><link>https://www.infopathdev.com:443/forums/thread/85645.aspx</link><pubDate>Thu, 27 Dec 2012 09:36:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85645</guid><dc:creator>williamholt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85645.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=85645</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I found the answer in a very lucky Google search where Clayton Cobb explained the answer.&amp;nbsp; For others, here is what he said:&lt;/p&gt;&lt;div class="profile-mini-container"&gt;                &lt;div class="profile-mini-display-name"&gt;&lt;div class="profile-usercard-hover"&gt;&lt;a href="http://social.msdn.microsoft.com/profile/clayton%20cobb%20-%20mvp/?ws=usercard-mini" target="_blank"&gt;Clayton Cobb - MVP&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;                            &lt;div class="profile-mini-company"&gt;Planet Technologies&lt;/div&gt;                            &lt;div class="profile-mini-affiliations"&gt;                                    (MVP)                                &lt;/div&gt;                &lt;span class="profile-mini-points"&gt;54,805&lt;span class="points-label"&gt; Points&lt;/span&gt;&lt;/span&gt;                &lt;/div&gt;                                    
            &lt;div class="helpful"&gt;
                &amp;nbsp;&lt;img src="http://i1.social.s-msft.com/globalresources/Images/trans.gif?cver=0%0d%0a" class="icon answer" alt="Answered" title="Answered" /&gt;                            &lt;/div&gt;
        
        &lt;div class="votingouterbox"&gt;            &lt;div class="body"&gt;
                       &lt;a href="https://login.live.com/login.srf?wa=wsignin1.0&amp;amp;wtrealm=social.msdn.microsoft.com&amp;amp;wreply=https%3a%2f%2fsocial.msdn.microsoft.com%2fforums%2fen%2fsharepointcustomizationlegacy%2fthread%2f48c3a7fa-1119-4d0f-ba1e-947490786ffa%3fprof%3drequired%26stoAI%3d10&amp;amp;wp=MBI_FED_SSL&amp;amp;wlcxt=microsoft%24microsoft%24microsoft" class="" name="voteup" title="Vote As Helpful"&gt;
                           &lt;img src="http://i1.social.s-msft.com/globalresources/Images/trans.gif?cver=0%0d%0a" class="icon voteup" alt="Sign In to Vote" title="Sign In to Vote" /&gt;
                           &lt;div class="votecount"&gt;1&lt;/div&gt;&lt;/a&gt;&lt;span class="votinglabel type"&gt;&lt;/span&gt;Instead of creating your own repeating 
table, just go to your secondary data source in the data source pain, 
drill down to the repeating group that has the data set nodes of the web
 service, and drag that group to the canvas.&amp;nbsp; It will prompt you to make
 a repeating table and will place all those fields as columns in a 
repeating table.&amp;nbsp; When you query the web service, the repeating table 
will fill up with all records from the data set returned by the web 
service.&lt;hr class="sig" /&gt;SharePoint Architect - Planet Technologies - 4-Year Microsoft Federal Partner of the Year (2005-2008)&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;http://social.msdn.microsoft.com/forums/en/sharepointcustomizationlegacy/thread/48c3a7fa-1119-4d0f-ba1e-947490786ffa&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks again for providing this valuable resource!&lt;br /&gt;&lt;/p&gt;&lt;p&gt;William H. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>InfoPath 2010 ASMX Web Service - Only Returning One Row of DataSet</title><link>https://www.infopathdev.com:443/forums/thread/85644.aspx</link><pubDate>Thu, 27 Dec 2012 09:18:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85644</guid><dc:creator>williamholt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=85644</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I created a web service in SQL Server 2008 by using an EndPoint with my stored procedure.&amp;nbsp; That worked great with my InfoPath 2010 form.&amp;nbsp; However, the use of endpoints for web services is discontinued in SQL Server 2012, which I will have to use in production.&lt;/p&gt;&lt;p&gt;So, I created an asmx web service in Visual Studio 2010, and used the same query as I did with my stored procedure, except it is in C#:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;string cmdString = @&amp;quot;SELECT &amp;quot;&amp;quot;ITL-ITEM&amp;quot;&amp;quot;, &amp;quot;&amp;quot;ITE-DESCRIPTION&amp;quot;&amp;quot;, &amp;quot;&amp;quot;ITE-DESCRIPTION2&amp;quot;&amp;quot;, &amp;quot;&amp;quot;ITE-STOCK-UOM&amp;quot;&amp;quot;, &amp;quot;&amp;quot;ITE-USER-FIELD2&amp;quot;&amp;quot;, &amp;quot;&amp;quot;ITE-USER-FIELD3&amp;quot;&amp;quot;, &amp;quot;&amp;quot;ITL-LAST-REC-COST&amp;quot;&amp;quot; from Catalog WHERE &amp;quot;&amp;quot;ITE-DESCRIPTION&amp;quot;&amp;quot; LIKE&amp;nbsp; &amp;#39;&amp;quot; + &amp;#39;%&amp;#39; + searchWord + &amp;#39;%&amp;#39; + &amp;quot;&amp;#39; &amp;quot;; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;This returned the results I expected in Visual Studio and then after I deployed it to the server, it still gave me the correct results when I invoked the method on the web service.&amp;nbsp; However, when I made that new C# web service my data source in my InfoPath form, my data fields returned only allowed for one result.&amp;nbsp; These were non-repeating fields.&amp;nbsp; My datafields looked like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;queryFields&lt;br /&gt;dataFields&lt;br /&gt;&amp;nbsp;&amp;nbsp; tns.GetProductsResponse&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetProductsResult&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :NewDataSet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Choice)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catalog&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITL-ITEM&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITL-Description&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITL-Description2...&lt;/p&gt;&lt;p&gt;With that arrangement, I received an error when trying to place the datafields, like ITL-ITEM, on my InfoPath form.&amp;nbsp; They were labeled as Choice field types, and the error message said that the field could not store the data correctly.&amp;nbsp; I made the Choice a repeating Choice field, but that didn&amp;#39;t help either.&lt;/p&gt;&lt;p&gt;When I went back and looked at my SQL Server web service I used initially with InfoPath, I had data fields like this:&lt;/p&gt;&lt;p&gt;(Choice)&lt;br /&gt;sqlresultstream:SQLRowSet&lt;br /&gt;&amp;nbsp; ns1:SqlRowSet1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; row&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITL-ITEM&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITL-Description&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITL-Description2 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; Note that I had a&lt;b&gt; &lt;u&gt;row and the fields were repeating&lt;/u&gt;.&lt;/b&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;Do you know where I am going wrong?&amp;nbsp; I seem to be missing something that is telling InfoPath that I want the entire dataset result, with many rows returned. &lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;William H &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>