<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Insert a Sharepoint list item from web services</title>
	<atom:link href="http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Aug 2009 22:20:45 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: calin</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1159</link>
		<dc:creator>calin</dc:creator>
		<pubDate>Thu, 30 Jul 2009 21:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1159</guid>
		<description>Hi,
Thanks for the example. It seems I have to get used with all limitations provided by MS for SP developers. I&#039;m wondering if it was easier for them to parse and interpret an XML instead of creating serializable business classes which could be manipulated through webservices and developers could achieve basic operations without having to read few hours on the internet about how the XML data should look like...
I guess I should say &quot;Thanks again MS for keeping things complicated with SP&quot;.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for the example. It seems I have to get used with all limitations provided by MS for SP developers. I&#8217;m wondering if it was easier for them to parse and interpret an XML instead of creating serializable business classes which could be manipulated through webservices and developers could achieve basic operations without having to read few hours on the internet about how the XML data should look like&#8230;<br />
I guess I should say &#8220;Thanks again MS for keeping things complicated with SP&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali raza</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1155</link>
		<dc:creator>Ali raza</dc:creator>
		<pubDate>Wed, 24 Jun 2009 17:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1155</guid>
		<description>i am stuck in one issue, if you can help me, iam using sharepoint List webservice to get attachement,

using method getAttachmentCollection,

It returns perfect attachement url on local machine, but when i publish the site to internet it return same url not the internet one, hostname does not change i tried to change the url using javascript relpace method but it does not work, can you please tell me how to fix this, i really have to finish this as soon as possible</description>
		<content:encoded><![CDATA[<p>i am stuck in one issue, if you can help me, iam using sharepoint List webservice to get attachement,</p>
<p>using method getAttachmentCollection,</p>
<p>It returns perfect attachement url on local machine, but when i publish the site to internet it return same url not the internet one, hostname does not change i tried to change the url using javascript relpace method but it does not work, can you please tell me how to fix this, i really have to finish this as soon as possible</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sweha</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1149</link>
		<dc:creator>sweha</dc:creator>
		<pubDate>Sat, 18 Apr 2009 00:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1149</guid>
		<description>When you insert a sharepoint list item from web services, can you also please show how to add attachments as well so that if i attach a file suppose in a webpage and hit submit, it shows up as an attachment in the sharepoint list for the inserted item.

I tried using listservice.AddAttachment(&quot;listname&quot;, &quot;ID&quot;, fileName, contents) but I don&#039;t know how do I do it for ID where I don&#039;t want to say &quot;1&quot; or &quot;2&quot; or &quot;3&quot; as I am not trying to attach something to specifally item with id 1 or 2 or 3 in the list. I just want that whenever a new item is inserted, if it has an attachment, thn add that attachment also along with the other times in the list.</description>
		<content:encoded><![CDATA[<p>When you insert a sharepoint list item from web services, can you also please show how to add attachments as well so that if i attach a file suppose in a webpage and hit submit, it shows up as an attachment in the sharepoint list for the inserted item.</p>
<p>I tried using listservice.AddAttachment(&#8221;listname&#8221;, &#8220;ID&#8221;, fileName, contents) but I don&#8217;t know how do I do it for ID where I don&#8217;t want to say &#8220;1&#8243; or &#8220;2&#8243; or &#8220;3&#8243; as I am not trying to attach something to specifally item with id 1 or 2 or 3 in the list. I just want that whenever a new item is inserted, if it has an attachment, thn add that attachment also along with the other times in the list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Murdock</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1148</link>
		<dc:creator>David Murdock</dc:creator>
		<pubDate>Thu, 16 Apr 2009 16:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1148</guid>
		<description>D&#039;oh, looks like this blob page took out a bunch of the XML code when i submitted.</description>
		<content:encoded><![CDATA[<p>D&#8217;oh, looks like this blob page took out a bunch of the XML code when i submitted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Murdock</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1147</link>
		<dc:creator>David Murdock</dc:creator>
		<pubDate>Thu, 16 Apr 2009 16:45:48 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1147</guid>
		<description>Ben,

Thanks for the Post, It&#039;s definitely explanatory of the basic process.

I have one question.

I would like to insert the value of a variable into the batchElement.InnerXML.
Such As:

  batchElement.InnerXml = &quot;&quot;  
  &quot;textbox4.Text&quot;;

Can you please point me in the direction of how to accomplish this.

Thanks in Advance,
Dave</description>
		<content:encoded><![CDATA[<p>Ben,</p>
<p>Thanks for the Post, It&#8217;s definitely explanatory of the basic process.</p>
<p>I have one question.</p>
<p>I would like to insert the value of a variable into the batchElement.InnerXML.<br />
Such As:</p>
<p>  batchElement.InnerXml = &#8220;&#8221;<br />
  &#8220;textbox4.Text&#8221;;</p>
<p>Can you please point me in the direction of how to accomplish this.</p>
<p>Thanks in Advance,<br />
Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scotty</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1146</link>
		<dc:creator>scotty</dc:creator>
		<pubDate>Tue, 07 Apr 2009 09:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1146</guid>
		<description>Ben,
many thanks for this post
I blew off many hours trawling through the MS examples and the many examples on t&#039;internet which generally just repeat the MS ones trying to figure out how to update a lookup field (1-based works for me) 

Finding sharepoint to be a horribly complex monster to get basic things done in

Many thanks for your post - saved me where the rest of t&#039;internet failed!</description>
		<content:encoded><![CDATA[<p>Ben,<br />
many thanks for this post<br />
I blew off many hours trawling through the MS examples and the many examples on t&#8217;internet which generally just repeat the MS ones trying to figure out how to update a lookup field (1-based works for me) </p>
<p>Finding sharepoint to be a horribly complex monster to get basic things done in</p>
<p>Many thanks for your post &#8211; saved me where the rest of t&#8217;internet failed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Lege</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1145</link>
		<dc:creator>Ryan Lege</dc:creator>
		<pubDate>Mon, 06 Apr 2009 13:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1145</guid>
		<description>How about updating Modified by and Created by?</description>
		<content:encoded><![CDATA[<p>How about updating Modified by and Created by?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Volk</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1139</link>
		<dc:creator>Rob Volk</dc:creator>
		<pubDate>Wed, 25 Feb 2009 16:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1139</guid>
		<description>It looks like the lookup lists require a 1-based index, not a 0-based index.  Has anyone else seen this?</description>
		<content:encoded><![CDATA[<p>It looks like the lookup lists require a 1-based index, not a 0-based index.  Has anyone else seen this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1124</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Wed, 22 Oct 2008 14:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1124</guid>
		<description>Bart, parth: 

 hope you get your issues resolved. I wrote this over two years ago and I haven&#039;t done any Sharepoint work since then, so I&#039;m really not your best option as far as getting help. The code that I posted worked for my scenario, but Sharepoint is a complex beast, and there are changes in Sharepoint 2007 that probably make my code not work anymore.

Sorry I can&#039;t be of more help.</description>
		<content:encoded><![CDATA[<p>Bart, parth: </p>
<p> hope you get your issues resolved. I wrote this over two years ago and I haven&#8217;t done any Sharepoint work since then, so I&#8217;m really not your best option as far as getting help. The code that I posted worked for my scenario, but Sharepoint is a complex beast, and there are changes in Sharepoint 2007 that probably make my code not work anymore.</p>
<p>Sorry I can&#8217;t be of more help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart van Beurden</title>
		<link>http://benreichelt.net/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/comment-page-1/#comment-1123</link>
		<dc:creator>Bart van Beurden</dc:creator>
		<pubDate>Wed, 22 Oct 2008 07:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/03/25/insert-a-sharepoint-list-item-from-web-services/#comment-1123</guid>
		<description>Hi Ben, 

So I will try to commit my code for the third (and hopefully the last) time..

I tried to use your way and something like this below, both ways don&#039;t work :(

Method ID=&#039;1&#039; Cmd=&#039;New&#039;
Field name=&#039;team&#039; Type=&#039;Lookup&#039; List=&#039;Team&#039; FieldRef=&#039;name&#039; 
Field name=&#039;project&#039; Type=&#039;Lookup&#039; List=&#039;Project&#039; FieldRef=&#039;name&#039;</description>
		<content:encoded><![CDATA[<p>Hi Ben, </p>
<p>So I will try to commit my code for the third (and hopefully the last) time..</p>
<p>I tried to use your way and something like this below, both ways don&#8217;t work <img src='http://benreichelt.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Method ID=&#8217;1&#8242; Cmd=&#8217;New&#8217;<br />
Field name=&#8217;team&#8217; Type=&#8217;Lookup&#8217; List=&#8217;Team&#8217; FieldRef=&#8217;name&#8217;<br />
Field name=&#8217;project&#8217; Type=&#8217;Lookup&#8217; List=&#8217;Project&#8217; FieldRef=&#8217;name&#8217;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
