<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Submitting the entire form to a webservices</title><link>https://www.infopathdev.com:443/forums/thread/34919.aspx</link><pubDate>Wed, 26 Nov 2008 00:04:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34919</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34919.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34919</wfw:commentRss><description>&lt;p&gt;Hi BigMo and welcome,&lt;/p&gt;
&lt;p&gt;You know this is why we created the Database Accelerator Web Service (DBXL) back in 2004 (now in it&amp;#39;s 6th release - i.e. 2.3). You could have been done by now and thrown in document level permissioning, audit tracking, integration with ShP workflow, etc. in the extra time you saved. No coding required. Check out the free trial: &lt;a href="http://www.infopathdev.com/files/folders/dbxldownload/entry33823.aspx"&gt;http://www.infopathdev.com/files/folders/dbxldownload/entry33823.aspx&lt;/a&gt;. &lt;/p&gt;</description></item><item><title>Re: Submitting the entire form to a webservices</title><link>https://www.infopathdev.com:443/forums/thread/33759.aspx</link><pubDate>Sat, 01 Nov 2008 07:51:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33759</guid><dc:creator>santhoshp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33759.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33759</wfw:commentRss><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try using only one parameter of xml data type in store procedure to submit entire form as XML. Because if you use multiple parameters in stored procedure, then you are not able to pass values to that parameters from InfoPath when submitting entire form as XML document. &lt;br /&gt;I think this will work.&lt;/p&gt;</description></item><item><title>Re: Submitting the entire form to a webservices</title><link>https://www.infopathdev.com:443/forums/thread/33745.aspx</link><pubDate>Fri, 31 Oct 2008 14:43:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33745</guid><dc:creator>BigMo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33745.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33745</wfw:commentRss><description>&lt;p&gt;Shiva,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; I already had this code in the webservice and tested with the sample xml structure which is similar to the forms structure and it works. after that only i created the rule in the button and selected &amp;#39;Submit to the web service&amp;quot;, gave my WSDL address, chose the web method, checked entire form as XML document option, clicked ok. I previewed the form and clicked the button and its not inserting any record in the DB. So i am thinking there might be some structure diff. between my sample &amp;amp; the xml doc. that gets passed by the form. How can intercept and view the structure?&amp;nbsp; Thats my problem.&lt;/p&gt;
&lt;p&gt;PS: I tried fiddler2; it didn&amp;#39;t catch the&amp;nbsp;web session; because the form is&amp;nbsp;developed&amp;nbsp;on the same machine where the webserice reside. So using the htp://localhst:port/webservicename.asmx?WSDL to access the webservice. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Submitting the entire form to a webservices</title><link>https://www.infopathdev.com:443/forums/thread/33711.aspx</link><pubDate>Fri, 31 Oct 2008 07:41:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33711</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33711.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33711</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Whichever I gave the code is for web service. As you mentioned in the reply, you copied my code into web service and try once to submit the xml document using this web service. &lt;/p&gt;
&lt;p&gt;Then you have to take the web service connection in InfoPath and pass your xml document to that method and submit it via rule or code.&lt;/p&gt;</description></item><item><title>Re: Submitting the entire form to a webservices</title><link>https://www.infopathdev.com:443/forums/thread/33683.aspx</link><pubDate>Thu, 30 Oct 2008 13:54:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33683</guid><dc:creator>BigMo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33683.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33683</wfw:commentRss><description>&lt;p&gt;I am new to this Infopath. I don&amp;#39;t get what you are trying to say. I have exactly the same code you have given in my web services.&amp;nbsp; It accepts the xmldocument as the input parameter and calls the sproc with that.&amp;nbsp; That sproc has bunch of openxml insert statement to insert the data into multiple tables.&amp;nbsp; In the form&amp;#39;s button, i have rule that submits to a webservice (with entire form as xmldocument).&amp;nbsp; You want me to put this code in the submit button&amp;#39;s click event instead of submitting directly to the webservice? Please guide me thru this. Thanks.&lt;/p&gt;</description></item><item><title>Re: Submitting the entire form to a webservices</title><link>https://www.infopathdev.com:443/forums/thread/33675.aspx</link><pubDate>Thu, 30 Oct 2008 07:08:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33675</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33675.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33675</wfw:commentRss><description>&lt;p&gt;&lt;a class="" href="http://www.fiddler2.com/fiddler2/"&gt;Fiddler2&lt;/a&gt; will allow you to inspect web requests.&lt;/p&gt;</description></item><item><title>Re: Submitting the entire form to a webservices</title><link>https://www.infopathdev.com:443/forums/thread/33670.aspx</link><pubDate>Thu, 30 Oct 2008 06:17:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33670</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33670.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33670</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the below code to submit the xml,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;string connectionString = &amp;quot;Get the connection string&amp;quot;;&lt;/p&gt;
&lt;p&gt;SqlConnection sqlConnection = new SqlConnection(connectionString);&lt;/p&gt;
&lt;p&gt;SqlParameter sqlParameter = new SqlParameter(&amp;quot;xmlDocument&amp;quot;, &amp;lt;Inpur XML String&amp;gt;);&lt;/p&gt;
&lt;p&gt;try&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;sqlConnection.Open();&lt;/p&gt;
&lt;p&gt;SqlCommand sqlCommand = new SqlCommand(&amp;quot;&amp;lt;Stored Procedure Name&amp;gt;&amp;quot;, sqlConnection);&lt;/p&gt;
&lt;p&gt;sqlCommand.CommandType = System.Data.CommandType.StoredProcedure;&lt;/p&gt;
&lt;p&gt;sqlCommand.Parameters.Add(sqlParameter);&lt;/p&gt;
&lt;p&gt;int index = sqlCommand.ExecuteNonQuery();&lt;/p&gt;
&lt;p&gt;if (index &amp;gt; 0)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;statusMessage = &amp;quot;Successfully submitted to database.&amp;quot;;&lt;/p&gt;
&lt;p&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;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;catch (Exception ex)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; statusMessage = ex.ToString();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Note: Stored procedure should be same as your schema structure of form.&lt;/p&gt;</description></item><item><title>Submitting the entire form to a webservices</title><link>https://www.infopathdev.com:443/forums/thread/33656.aspx</link><pubDate>Wed, 29 Oct 2008 20:45:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33656</guid><dc:creator>BigMo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33656</wfw:commentRss><description>&lt;p&gt;I have an Infopath for and I need to submit the whole form to a webservices which in turn submits xml to the stored procedure.&amp;nbsp; That stored procedure has to several OPENXML statements to insert the data to different tables and the other link tables.&amp;nbsp; I took the &amp;lt;my:myfields&amp;gt;&amp;lt;my.field1&amp;gt;&amp;lt;/my.field1&amp;gt;....&amp;lt;/my.myFields&amp;gt; (the main data source structure and created the stored procedure accordingly with out the my: ); the sproc works fine for the structure; but when i pass the entire form to the webservice; nothing gets inserted and throwing me the can not insert NULL into the link table(meaning no record is inserted in the other tables; thats why no ids are returned); so i am thinking may be its not the same structure, i think it was.&amp;nbsp; Can someone HELP me with this.&amp;nbsp; How can I intercept and see what gets transmitted to the webservice?&amp;nbsp; I googled and am not getting much information on this. So I am seeking experts help.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I appreciate your help in this regard.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>