<?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: Solution: Updating infopath Forms/documents in sharepoint via Code</title><link>https://www.infopathdev.com:443/forums/thread/29173.aspx</link><pubDate>Wed, 04 Jun 2008 18:00:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29173</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29173.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=29173</wfw:commentRss><description>&lt;p&gt;Thanks for sharing this!&lt;/p&gt;</description></item><item><title>Re: Solution: Updating infopath Forms/documents in sharepoint via Code</title><link>https://www.infopathdev.com:443/forums/thread/29098.aspx</link><pubDate>Mon, 02 Jun 2008 14:23:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29098</guid><dc:creator>Cutejon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=29098</wfw:commentRss><description>&lt;p&gt;your welcome.&lt;/p&gt;</description></item><item><title>Re: Solution: Updating infopath Forms/documents in sharepoint via Code</title><link>https://www.infopathdev.com:443/forums/thread/29091.aspx</link><pubDate>Mon, 02 Jun 2008 12:40:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29091</guid><dc:creator>Vicster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29091.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=29091</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s a sweet piece of code, thank you!&lt;/p&gt;&lt;p&gt;I was doing some research in DAVAdapters when this came out.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Solution: Updating infopath Forms/documents in sharepoint via Code</title><link>https://www.infopathdev.com:443/forums/thread/29080.aspx</link><pubDate>Mon, 02 Jun 2008 06:18:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29080</guid><dc:creator>Cutejon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29080.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=29080</wfw:commentRss><description>&lt;p&gt;Hi Everyone, &lt;/p&gt;
&lt;p&gt;As infopathdev users have been so kind in sharing their thoughts/solutions in the questions I have for Infopath, I would like to share the solution I&amp;#39;ve found for one of my problems.&lt;/p&gt;
&lt;p&gt;Question found here: &lt;a href="http://www.infopathdev.com/forums/p/7800/28534.aspx#28534"&gt;http://www.infopathdev.com/forums/p/7800/28534.aspx#28534&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Solution:&lt;/p&gt;
&lt;p&gt;Details: (Coding-VB Script), Add or update infopath forms/documents in a sharepoint document list.&lt;/p&gt;
&lt;p&gt;Assumptions: Users running this code&amp;nbsp;must have&amp;nbsp;create/edit access to the sharepoint site.&lt;/p&gt;
&lt;p&gt;sSubmitUrl = contains the full url of the infopath document you want to either add or update&lt;/p&gt;
&lt;p&gt;XMLBody = this is the string that&amp;nbsp;contains the complete infopath forms/documents contents, including PI&amp;#39;s (Processing Instructions)&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Imports&lt;/font&gt;&lt;font size="2"&gt; System.Net&lt;/font&gt;&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;Imports&lt;/font&gt;&lt;font size="2"&gt; System.IO&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Dim sUrl As String = sSubmitUrl &lt;br /&gt;Dim wResponse As WebRequest = WebRequest.Create(sUrl)&lt;br /&gt;wResponse.Credentials = CredentialCache.DefaultCredentials&lt;br /&gt;&lt;br /&gt;wResponse.Method = &amp;quot;PUT&amp;quot;&lt;br /&gt;wResponse.Headers.Add(&amp;quot;Translate: f&amp;quot;)&lt;br /&gt;wResponse.ContentLength = XMLBody.Length&lt;br /&gt;wResponse.ContentType = &amp;quot;text/xml; charset=utf-8&amp;quot;&lt;br /&gt;&lt;br /&gt;&amp;#39;write xml to the request stream.&lt;br /&gt;Dim sw As New StreamWriter(wResponse.GetRequestStream())&lt;br /&gt;sw.Write(XMLBody)&lt;br /&gt;sw.Flush()&lt;br /&gt;sw.Close()&lt;br /&gt;Try&lt;br /&gt;Dim resp As WebResponse = wResponse.GetResponse()&lt;br /&gt;Catch ex As Exception&lt;br /&gt;Exit Function&lt;br /&gt;End Try&lt;/p&gt;</description></item></channel></rss>