<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Security problem for accessing Web Service (which is created to access AD)</title><link>https://www.infopathdev.com:443/forums/thread/27731.aspx</link><pubDate>Sun, 06 Apr 2008 12:26:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27731</guid><dc:creator>Cutejon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27731.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=27731</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;srikrushna,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yup, making the form full trust did the trick. It worked!&lt;/p&gt;
&lt;p&gt;But if you&amp;nbsp;find any other way of making it work without making it full trust that would be better. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Coz, making the form full trust means, extra work such as deploying certificates on different PCs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But for now, because Im having it deployed on production, full trust will have to do.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;</description></item><item><title>Re: Security problem for accessing Web Service (which is created to access AD)</title><link>https://www.infopathdev.com:443/forums/thread/27585.aspx</link><pubDate>Tue, 01 Apr 2008 08:02:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27585</guid><dc:creator>srikrushna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27585.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=27585</wfw:commentRss><description>&lt;p&gt;Hi Cutejon, &lt;/p&gt;
&lt;p&gt;I wanted to know, whether your Security level of Infopath(Published) from is Domain of Full Trust Level.&lt;/p&gt;
&lt;p&gt;If it is Domain or &amp;quot;Automaticall detect trust level&amp;quot;&amp;nbsp;, make it Full Trust Level and publish the Same.&lt;/p&gt;
&lt;p&gt;Believe,it will work.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Security problem for accessing Web Service (which is created to access AD)</title><link>https://www.infopathdev.com:443/forums/thread/27557.aspx</link><pubDate>Sat, 29 Mar 2008 08:40:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27557</guid><dc:creator>Cutejon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=27557</wfw:commentRss><description>&lt;p&gt;Hi srikrushna,&lt;/p&gt;
&lt;p&gt;Thank you for your feedback. I had it tried immediately after reading your reply.&lt;/p&gt;
&lt;p&gt;Unfortunately, after trying your suggested option, and after publishing again my form in the sharepoint site, it didn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Btw, we changed it under the Option:&lt;/p&gt;
&lt;p&gt;Right click on the folder&lt;/p&gt;
&lt;p&gt;clicked permissions&lt;/p&gt;
&lt;p&gt;then security &lt;/p&gt;
&lt;p&gt;then added everyone and gave them read only access.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Propertie--&amp;gt;Security--&amp;gt;Add Everyone and Give Only Read Access. &amp;lt;- path does not exists.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What am i doing wrong? hope you can give me feedback on this. thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Security problem for accessing Web Service (which is created to access AD)</title><link>https://www.infopathdev.com:443/forums/thread/27556.aspx</link><pubDate>Sat, 29 Mar 2008 08:20:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27556</guid><dc:creator>Cutejon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=27556</wfw:commentRss><description>&lt;p&gt;Hi Clay,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;btw, my form is client based, not browser based.&lt;/p&gt;
&lt;p&gt;I have tried programming via UDC, and placing it as a data connection (under manage data connections of infopath)..then code wise, i have instanciated this object via the use of :&lt;/p&gt;
&lt;p&gt;&amp;nbsp;D&lt;font color="#0000ff" size="2"&gt;im&lt;/font&gt;&lt;font size="2"&gt; secondaryDataSource &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; DataSource = DataSources.Item(&amp;lt;name of datasource&amp;gt;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;unfortunately, even if i set the values of the arguments ( e.g. GetUser(&amp;lt;ID Number&amp;gt;, &amp;lt;property&amp;gt;), the ID number &amp;amp; property), the return values are not given back to me. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;so &lt;/font&gt;&lt;font size="2"&gt;how do send it back to the server to&amp;nbsp;give back to me the values i need.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;I looked for the equivalent&lt;/font&gt;&lt;font size="2"&gt; VBscript version, but to no avail.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again.&lt;/p&gt;</description></item><item><title>Re: Security problem for accessing Web Service (which is created to access AD)</title><link>https://www.infopathdev.com:443/forums/thread/27530.aspx</link><pubDate>Fri, 28 Mar 2008 13:27:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27530</guid><dc:creator>srikrushna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27530.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=27530</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hi Cutejon,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The best way to solve this Problem is Give Read Permission to UR custom Webservice, which is hosted under the IIS.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Right click on the Webservice folder(Where U ve published i.e. Under Virtual Dir)--&amp;gt;Propertie--&amp;gt;Security--&amp;gt;Add Everyone and Give Only Read Access.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;So that Everyone can access the Datasource, which ur Web service is producing.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I believe this will work !&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Security problem for accessing Web Service (which is created to access AD)</title><link>https://www.infopathdev.com:443/forums/thread/27496.aspx</link><pubDate>Thu, 27 Mar 2008 15:54:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27496</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27496.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=27496</wfw:commentRss><description>&lt;p&gt;Welcome to the forum.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;have you tried accessing the web service via data conenctions rather than directly in your code?&lt;/p&gt;
&lt;p&gt;For a browser based form you would need to convert to a UDC, this can be done&amp;nbsp;with one button click&amp;nbsp;as a data connection.&lt;/p&gt;</description></item><item><title>Security problem for accessing Web Service (which is created to access AD)</title><link>https://www.infopathdev.com:443/forums/thread/27438.aspx</link><pubDate>Wed, 26 Mar 2008 10:52:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27438</guid><dc:creator>Cutejon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27438.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=27438</wfw:commentRss><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is my first time to use this site and also to use infopath and also&amp;nbsp;with sharepoint.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have an infopath form, which has managed codes in it(VBScript). In this code, i added a web reference, pointing to a custom created web service that can access the AD. Then i used this web service in my code, declared it, and used it&amp;nbsp;to reference and get the values offered by this web service.&lt;/p&gt;
&lt;p&gt;I created the web service using VS, and published it in my local pc, then referenced that local link to the Infopath form (which has full trust at that time) and it worked. &lt;/p&gt;
&lt;p&gt;Then I ported it to the test environment sharepoint website. &lt;/p&gt;
&lt;p&gt;Webservice is placed to&amp;nbsp;a IIS website(same domain and even same place where the sharepoint website is located).&lt;/p&gt;
&lt;p&gt;Infopath form is&amp;nbsp;published with security level set to &amp;#39;Automatically determine security level&amp;#39; to the sharepoint website, and changed the link of the web service from local to the new&amp;nbsp;location produced from the IIS server.&lt;/p&gt;
&lt;p&gt;But running the form on sharepoint produced me this error:&lt;/p&gt;
&lt;p&gt;System.Security.SecurityException&lt;br /&gt;Request for the permission of type &amp;#39;System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, 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 ADProfileService.AdWebServices.GetUser(String strUserName)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at EOD_Summary.FormCode.sendMail()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at EOD_Summary.FormCode.bSendReport_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;/p&gt;
&lt;p&gt;*what&amp;nbsp;was the form doing:&lt;/p&gt;
&lt;p&gt;1. trying to access the Webservice by feeding it the CN/accountname (ID number in our case) and returning the displayname property&lt;/p&gt;
&lt;p&gt;*issue(s) to consider&lt;/p&gt;
&lt;p&gt;1. forms should not be full trust&amp;nbsp;when published in sharepoint.&lt;/p&gt;
&lt;p&gt;--some of my colleagues here suggested to use the connection library(website connection center)&amp;nbsp;and create UDC, but I noticed that using&amp;nbsp;a UDC will only reference a method(only one at a time)&amp;nbsp;of the webservice. But what i need is all the methods from the webservice, so does it mean i have to create for each method a UDC?&lt;/p&gt;
&lt;p&gt;My Question now is...&lt;/p&gt;
&lt;p&gt;What is the best way to impliment the solution&amp;nbsp;in the said problem? Or what settings should I do on the server to enable the webservice for infopath use?&lt;/p&gt;
&lt;p&gt;Your help will be much appreciated!&lt;/p&gt;</description></item></channel></rss>