<?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: Simple (?) Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17827.aspx</link><pubDate>Mon, 20 Feb 2006 00:16:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17827</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17827</wfw:commentRss><description>Hi Tom&lt;br /&gt;&lt;br /&gt;i did the exact thing a month ago or so, using Web services and EventHandlers (except i did it on the CheckIn event since i only wanted to copy the document when it was approved).&lt;br /&gt;&lt;br /&gt;the problem is that you cannot access the API across servers (or even portals), so you need to either use existing web services (check the lists.asmx web service in your SPPT SDK) or create a custom sharepoint web service (this is what i did) that you implement on the target box. Theres a good article on this subject on MSDN&lt;a target="_blank" href=http://msdn.microsoft.com/library/en-us/odc_SP2003_ta/html/ODC_WritingCustomWebServicesforSPPT.asp&gt;http://msdn.microsoft.com/library/en-us/odc_SP2003_ta/html/ODC_WritingCustomWebServicesforSPPT.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;&lt;br /&gt;//AndersR</description></item><item><title>Re: Simple (?) Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17826.aspx</link><pubDate>Tue, 14 Feb 2006 21:54:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17826</guid><dc:creator>bigheadhanks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17826</wfw:commentRss><description>OK! I have made considerable progress on this issue today. I took Patrick's advice and created an Event Handler. The Event Handler simply takes any submitted document/form to a library and moves it to another library. I really like this solution as it doesn't require any new form code. However, I am having an issue with the Event Handler that I created. The Event Handler that I created seems to only work if the Document/Form libraries are on the same WSS site. It will not move the file from one WSS site to another, and more importantly it will not move a file from a Portal site's document library to a WSS site's document library. I put in an exception handler in the code and it is returning a: "Value does not fall within the expected range." error. I have attached the code for the assembly below.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Imports Microsoft.SharePoint&lt;br /&gt;&lt;br /&gt;Public Class FormMove : Implements IListEventSink&lt;br /&gt;    Public Sub OnEvent(ByVal listEvent As Microsoft.SharePoint.SPListEvent) Implements Microsoft.SharePoint.IListEventSink.OnEvent&lt;br /&gt;        On Error Resume Next&lt;br /&gt;        Dim SharePointWeb As SPWeb = listEvent.Site.OpenWeb()&lt;br /&gt;        Dim SharePointEventItem As SPFile = SharePointWeb.GetFile(listEvent.UrlAfter)&lt;br /&gt;        Dim oItem As SPListItem = SharePointEventItem.Item&lt;br /&gt;        Dim sFileName As String = oItem.File.Name.ToString()&lt;br /&gt;&lt;br /&gt;        If listEvent.Type = SPListEventType.Insert Then&lt;br /&gt;            Err.Clear()&lt;br /&gt;            Dim MoveToPath As String = "http://sharepointsite/doclib/" + sFileName&lt;br /&gt;            SharePointEventItem.MoveTo(MoveToPath)&lt;br /&gt;&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;    End Sub 'OnEvent&lt;br /&gt;End Class&lt;br /&gt;&lt;/pre&gt;</description></item><item><title>Re: Simple (?) Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17825.aspx</link><pubDate>Tue, 14 Feb 2006 15:25:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17825</guid><dc:creator>bigheadhanks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17825</wfw:commentRss><description>Well I believe that I can achieve what I need to achieve by using an event handler as suggested above. If anyone out there has an example event handler that I might be able to look at, I would greatly appreciate it.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;br /&gt;Tom</description></item><item><title>Re: Simple (?) Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17824.aspx</link><pubDate>Tue, 14 Feb 2006 12:50:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17824</guid><dc:creator>bigheadhanks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17824</wfw:commentRss><description>Thanks for the response Patrick. I will report back any solutions I find to my problem. Thanks again.&lt;br /&gt;</description></item><item><title>Re: Simple (?) Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17823.aspx</link><pubDate>Tue, 14 Feb 2006 06:25:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17823</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17823.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17823</wfw:commentRss><description>Hi Tom,&lt;br /&gt;You are right - this is an issue. The other way to handle it is to use an Event Handler to move the forms from the form library after they are submitted. Both a Web service and an Event Handler will require administrator permissions on the server. You will want to write a Web service that checks the user's credentials and grants permissions based on that. The Recruiting Accelerator that my team at Microsoft created 2+ years ago is a great resource because it has code for a Web service that does this on top of a SQL database. It also includes web parts for showing the data on the SharePoint site. Please search MSDN or Microsoft sites for that project and let us know if you find it.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPath Dev Seattle</description></item><item><title>Simple (?) Web Service</title><link>https://www.infopathdev.com:443/forums/thread/17518.aspx</link><pubDate>Mon, 13 Feb 2006 18:51:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17518</guid><dc:creator>bigheadhanks</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17518</wfw:commentRss><description>Greetings!&lt;br /&gt;&lt;br /&gt;I have a few forms that I am creating which contain sensitive information. The problem is that with SharePoint permissions as I understand them, anyone who can submit a form to a library, can also read forms in that library. The only work-around that I can find to keep the form library secure is to have a webservice to submit the form to the library for the user. That way the form gets submitted and the library stays secure. My problem is one, I'm not sure if this is even possible. And two, if it is possible, I have no idea where to start. Can someone point me in the right direction?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Tom</description></item></channel></rss>