<?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: Calling web service from c# code in Infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/36585.aspx</link><pubDate>Mon, 05 Jan 2009 16:57:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36585</guid><dc:creator>rkgadige</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36585.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=36585</wfw:commentRss><description>&lt;p&gt;Thanks Shiva. Happy new Year&lt;/p&gt;
&lt;p&gt;Now I have one more issue.&amp;nbsp; How do I publish the form to shared folder with managed code dll.&lt;/p&gt;
&lt;p&gt;Am using IP2003 and VS 2005. I got the code compiled on my developing machine. When I try to publish the form to Shared Path and open it from there I get the error&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;quot;Form template: &lt;a&gt;file:///\\HERA.cephalon.net\DATA\PDRC_Forms\Test%20Forms--PLEASE%20DO%20NOT%20USE\TestForms\trackingform.xsn&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;InfoPath cannot open the selected form because of an error in the form&amp;#39;s code.One or more required components of InfoPath or the form template cannot run because of a security restriction.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Contact your system administrator or run Setup again to confirm that .NET Programmability Support is installed on your computer.Request for the permission of type &amp;#39;System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Do I need to sign the assembly? I added this code in class file&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;font size="2"&gt;[assembly: &lt;/font&gt;&lt;font color="#008080" size="2"&gt;FileIOPermission&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;SecurityAction&lt;/font&gt;&lt;font size="2"&gt;.RequestMinimum, Unrestricted = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;)]&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt; 
&lt;p&gt;&lt;font size="2"&gt;Can you&amp;nbsp;give me the steps to publish the&amp;nbsp;IP 2003 on&amp;nbsp;to&amp;nbsp;share network drive?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Ravi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;</description></item><item><title>Re: Calling web service from c# code in Infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/36362.aspx</link><pubDate>Tue, 30 Dec 2008 09:01:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36362</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36362.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=36362</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;After taking the web service connection you have to write the below code to submit the form,&lt;/p&gt;
&lt;p&gt;try&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;IXMLDOMDocument2 submitDocument = (IXMLDOMDocument2)GetDom(&amp;quot;Connection Name&amp;quot;, &amp;quot;Web Service Namespace&amp;quot;);&lt;/p&gt;
&lt;p&gt;setDocumentWithPIDom.selectSingleNode(&amp;quot;XPath of xml node in your web service&amp;quot;, xmlString);&lt;/p&gt;
&lt;p&gt;WebServiceAdapter2 webServiceAdapter = (WebServiceAdapter2)thisXDocument.DataAdapters[(&amp;quot;Connection Name&amp;quot;];&lt;/p&gt;
&lt;p&gt;webServiceAdapter.Query();&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;string str = ex.Message;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: The above code in 2003 C#.&lt;/p&gt;</description></item><item><title>Re: Calling web service from c# code in Infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/36153.aspx</link><pubDate>Mon, 22 Dec 2008 15:23:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36153</guid><dc:creator>rkgadige</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36153.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=36153</wfw:commentRss><description>&lt;p&gt;Hi Shiva,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t get the information in the link which you have sent. Can you point to some code snippets where there is a call to web service. If&amp;nbsp;possible, can you give me snippets with managed code and also script.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And Also I need to call submit (submitting data to the web service) when user selects &amp;quot;Save&amp;quot; menu. Let me&amp;nbsp;know how can&amp;nbsp;I do&amp;nbsp;in sript and managed code?&lt;/p&gt;
&lt;p&gt;Thanks a lot for responding to my mail.&lt;/p&gt;
&lt;p&gt;Ravi&lt;/p&gt;</description></item><item><title>Re: Calling web service from c# code in Infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/36126.aspx</link><pubDate>Sat, 20 Dec 2008 06:08:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36126</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36126.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=36126</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you go through below link,&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/9519/33711.aspx#33711"&gt;http://www.infopathdev.com/forums/p/9519/33711.aspx#33711&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In above link code in C#. We can call the web service in script also.&lt;/p&gt;</description></item><item><title>Calling web service from c# code in Infopath 2003</title><link>https://www.infopathdev.com:443/forums/thread/36107.aspx</link><pubDate>Fri, 19 Dec 2008 14:44:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36107</guid><dc:creator>rkgadige</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36107.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=36107</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I created a application with IP2003 ,web services and sql database. I am newbie to Infopath. I used data connections to submit and retrieve the data from webservice. &lt;/p&gt;
&lt;p&gt;I need to write custom code in c# where I can call webserve and check for exceptions and return to the user. I searched over net for the code but in vain. Can anyone send the link or code how I can call web service to save and retreive the data from web service?&lt;/p&gt;
&lt;p&gt;Can I do the same call with script? &lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Ravi&lt;/p&gt;</description></item></channel></rss>