<?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: How to Call Webservice method  from Infopath form????</title><link>https://www.infopathdev.com:443/forums/thread/76200.aspx</link><pubDate>Thu, 08 Mar 2012 15:57:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76200</guid><dc:creator>mydhilig</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76200.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=76200</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a similar situation, I am trying to submit my repeating table data to a vb.net web service which submits to a sql server. How do i pass parameters to the web service thru code behind.&lt;/p&gt;
&lt;p&gt;Can you please share your code with me.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mydhili&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to Call Webservice method  from Infopath form????</title><link>https://www.infopathdev.com:443/forums/thread/44835.aspx</link><pubDate>Thu, 23 Jul 2009 12:10:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44835</guid><dc:creator>Harish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44835.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=44835</wfw:commentRss><description>&lt;p&gt;Thanks A lot Craig &lt;/p&gt;
&lt;p&gt;Its Working&amp;nbsp; now&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to Call Webservice method  from Infopath form????</title><link>https://www.infopathdev.com:443/forums/thread/44832.aspx</link><pubDate>Thu, 23 Jul 2009 10:12:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44832</guid><dc:creator>CraigW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44832.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=44832</wfw:commentRss><description>&lt;p&gt;Ok, now you just need to give your form permission to make the webservice request.&lt;/p&gt;
&lt;p&gt;In InfoPath, go to Tools &amp;gt; Form Options &amp;gt; Security and Trust&amp;nbsp;and change the security level from automatic to Full Trust.&amp;nbsp; Then re-publish and re-upload your form.&lt;/p&gt;
&lt;p&gt;Craig&lt;/p&gt;</description></item><item><title>Re: How to Call Webservice method  from Infopath form????</title><link>https://www.infopathdev.com:443/forums/thread/44831.aspx</link><pubDate>Thu, 23 Jul 2009 10:07:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44831</guid><dc:creator>Harish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=44831</wfw:commentRss><description>&lt;p&gt;If I add any custom code to the infopath form. I dont Know how to publish to sharepoint site .&amp;nbsp; I understood from your previous post how to do it. I have done &lt;/p&gt;
&lt;p&gt;My requirement&amp;nbsp;is I have to design a TimeSheet Template which is Browser&amp;nbsp;Enabled template and&amp;nbsp;publish it to sharepoint site When The data&amp;nbsp;is entered I have to stored the data in Sql so that&amp;nbsp;I can retrieve later to my sharepoint web-part for reports&lt;/p&gt;
&lt;p&gt;Now I am getting the&amp;nbsp;following &amp;nbsp;error while calling the web-service from the Sharepoint site &lt;/p&gt;
&lt;p&gt;Request for the permission of type &amp;#39;System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp;amp; stackMark, Boolean isPermSet)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.CodeAccessPermission.Demand()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Net.HttpRequestCreator.Create(Uri Uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Net.WebRequest.Create(Uri requestUri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Wb.localhost.Service.InsertToDb()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Wb.FormCode.CTRL1_5_Clicked(Object sender, ClickedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;Request for the permission of type &amp;#39;System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp;amp; stackMark, Boolean isPermSet)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.CodeAccessPermission.Demand()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Net.HttpRequestCreator.Create(Uri Uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Net.WebRequest.Create(Uri requestUri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Wb.localhost.Service.InsertToDb()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Wb.FormCode.CTRL1_5_Clicked(Object sender, ClickedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Any idea??? I need to give any permission ?&lt;/p&gt;
&lt;p&gt;Thnaks a lot &lt;/p&gt;
&lt;p&gt;Harish&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to Call Webservice method  from Infopath form????</title><link>https://www.infopathdev.com:443/forums/thread/44829.aspx</link><pubDate>Thu, 23 Jul 2009 09:23:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44829</guid><dc:creator>CraigW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=44829</wfw:commentRss><description>&lt;p&gt;Hi Harish,&lt;/p&gt;
&lt;p&gt;I see.&amp;nbsp; So what problem are you having exactly?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Craig&lt;/p&gt;</description></item><item><title>Re: How to Call Webservice method  from Infopath form????</title><link>https://www.infopathdev.com:443/forums/thread/44828.aspx</link><pubDate>Thu, 23 Jul 2009 09:12:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44828</guid><dc:creator>Harish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=44828</wfw:commentRss><description>&lt;p&gt;Hi Criag&lt;/p&gt;
&lt;p&gt;Thanks for the reply &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I need to submit browser enabled Infopath form to SqlServer Database as it is mentioned in below article that we cant submit data directly to Sql server &lt;/p&gt;
&lt;p&gt;We need to use Web-service to submit the data.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/dipper/archive/2007/07/11/about-submit-infopath-form-data-to-microsoft-sql-server-database.aspx"&gt;http://blogs.msdn.com/dipper/archive/2007/07/11/about-submit-infopath-form-data-to-microsoft-sql-server-database.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Harish&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to Call Webservice method  from Infopath form????</title><link>https://www.infopathdev.com:443/forums/thread/44825.aspx</link><pubDate>Thu, 23 Jul 2009 08:55:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44825</guid><dc:creator>CraigW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=44825</wfw:commentRss><description>&lt;p&gt;Hi Harish,&lt;/p&gt;
&lt;p&gt;Can you explain in more detail what you are trying to acheive?&amp;nbsp; Are you trying to submit to SQL server or a web service?&lt;/p&gt;
&lt;p&gt;If you add any custom code to the infopath form, you have to publish it as an administrator approved template.&amp;nbsp; Publish the template, then upload it into forms services within SharePoint Central Administration.&amp;nbsp; Activate it to your site collection, then it will be available as a content type for you to use in your forms library.&lt;/p&gt;
&lt;p&gt;Craig&lt;/p&gt;</description></item><item><title>How to Call Webservice method  from Infopath form????</title><link>https://www.infopathdev.com:443/forums/thread/44822.aspx</link><pubDate>Thu, 23 Jul 2009 07:42:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44822</guid><dc:creator>Harish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44822.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=44822</wfw:commentRss><description>&lt;p&gt;Hi all &lt;/p&gt;
&lt;p&gt;I am new to Infopath &lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have Created a Blank Infopath form and Added a Button. Button Properties-&amp;gt; Edit form Code&amp;nbsp; -&amp;gt; Written My custom code calling the web-serice from here in Vs2005 When I try to publish this in sharepoint&amp;nbsp; It is not allowing me to select &lt;strong&gt;Document Libabry&lt;/strong&gt; and by deafult it select &amp;quot;&lt;strong&gt;Administrator -approved form Template ( Prepare this form template for an administrator approval)&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What are steps for&amp;nbsp;submitting a browser enabled Infopath Form to Sql server&amp;nbsp; using Web-Services? Can&amp;nbsp;I&amp;nbsp;publish this form to Sharepoint. will it work???&lt;/p&gt;
&lt;p&gt;What Template Based on I have to create ???(&amp;nbsp;Blank&amp;nbsp;or Web-service&amp;nbsp;)&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Any Example&amp;nbsp; on this ????Any Ideas??? &amp;nbsp;Help me&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Harish&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>