<?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: Web Service to populate InfoPath repeating list</title><link>https://www.infopathdev.com:443/forums/thread/19520.aspx</link><pubDate>Wed, 02 May 2007 15:49:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19520</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=19520</wfw:commentRss><description>Hi dgibson,
&lt;br /&gt;&lt;br /&gt; 
This shouldn't be too hard to do in code behind the InfoPath form.  You will need to inspect the XML that is returned from the web service, wrap it into an object, and then fill your secondary data source with it.  I have some code samples to look at if you need any more help.</description></item><item><title>Web Service to populate InfoPath repeating list</title><link>https://www.infopathdev.com:443/forums/thread/17582.aspx</link><pubDate>Thu, 22 Feb 2007 18:58:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17582</guid><dc:creator>dgibson5531</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17582.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17582</wfw:commentRss><description>I have a web service that executes a SQL stored procedure.   The stored procedure executes and fills a dataset.  How do I get the dataset into an InfoPath repeating list ?   Here is the code I have now.&lt;br /&gt;&lt;br /&gt;&amp;lt;WebMethod(Description:="Retrieves the list of roles for a given userID.")&amp;gt; _&lt;br /&gt;Public Function GetUserRoles(ByVal sUserID As String) As XmlNode&lt;br /&gt;    Dim oConnection As New SqlConnection&lt;br /&gt;    Dim oDataset As New DataSet&lt;br /&gt;&lt;br /&gt;    oConnection.ConnectionString = g_sCONN_STRING&lt;br /&gt;&lt;br /&gt;    Try&lt;br /&gt;      Dim oCommand As New SqlCommand("dbo.usp_MOCSVCS_selUserRoles", oConnection)&lt;br /&gt;      Dim parameter As SqlParameter&lt;br /&gt;      Dim oDataAdatpter As SqlDataAdapter&lt;br /&gt;&lt;br /&gt;      oCommand.CommandType = CommandType.StoredProcedure&lt;br /&gt;      oCommand.Connection.Open()&lt;br /&gt;      'Add parameters to oCommand object&lt;br /&gt;      parameter = oCommand.Parameters.Add("@sUserID", SqlDbType.NChar)&lt;br /&gt;      'Set parameter value&lt;br /&gt;      oCommand.Parameters("@sUserID").Value = sUserID&lt;br /&gt;&lt;br /&gt;      ' Create the DataAdapter &amp; DataSet&lt;br /&gt;      oDataAdatpter = New SqlDataAdapter(oCommand)&lt;br /&gt;&lt;br /&gt;      ' Fill the DataSet using default values for DataTable names, etc&lt;br /&gt;      oDataAdatpter.Fill(oDataset)&lt;br /&gt;&lt;br /&gt;    Catch ex As Exception&lt;br /&gt;      'Return ex.Message&lt;br /&gt;    Finally&lt;br /&gt;      oConnection.Close()&lt;br /&gt;    End Try&lt;br /&gt;&lt;br /&gt;    Return DataSetToXmlNode(oDataset)</description></item></channel></rss>