<?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: UpdateListItem web service not working for "Delete" but working for "Update"</title><link>https://www.infopathdev.com:443/forums/thread/105094.aspx</link><pubDate>Fri, 08 Jan 2016 20:52:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105094</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=105094</wfw:commentRss><description>Hmmm. I&amp;#39;m not sure what else to suggest. I just tried this again with U2U in case the behavior was different for site collections (my initial test was at the server root), and it worked as anticipated. I&amp;#39;m going to try to attach a copy of the CAML Query Editor I use here (it is freeware, but I think the newer versions don&amp;#39;t have the UpdateListItems method) so maybe you could try it to experiment with CAML and see what works for you? After you connect, find your list in the column on the left, right click and select UpdateListItems - then you can build using their interface or just paste in your own and test it. :)</description></item><item><title>Re: UpdateListItem web service not working for "Delete" but working for "Update"</title><link>https://www.infopathdev.com:443/forums/thread/105093.aspx</link><pubDate>Fri, 08 Jan 2016 20:26:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105093</guid><dc:creator>Sutharsni Karmegam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105093.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=105093</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;nbsp;have checked the URL and I finally hardcoded as well, &amp;quot;&amp;lt;Method ID=\&amp;quot;1\&amp;quot; Cmd=\&amp;quot;Delete\&amp;quot;&amp;gt;&amp;lt;Field Name=\&amp;quot;ID\&amp;quot;&amp;gt;258&amp;lt;/Field&amp;gt;&amp;lt;Field Name=\&amp;quot;FileRef\&amp;quot;&amp;gt;&amp;#39;http://**********/sites/subsite/Shared Documents/item.xml&amp;#39;&amp;lt;/Field&amp;gt;&amp;lt;/Method&amp;gt;&amp;quot; and &amp;quot;&amp;lt;Method ID=\&amp;quot;1\&amp;quot; Cmd=\&amp;quot;Delete\&amp;quot;&amp;gt;&amp;lt;Field Name=\&amp;quot;ID\&amp;quot;&amp;gt;258&amp;lt;/Field&amp;gt;&amp;lt;Field Name=\&amp;quot;FileRef\&amp;quot;&amp;gt;&amp;#39;http://**********/sites/subsite/Shared%20Documents/item.xml&amp;#39;&amp;lt;/Field&amp;gt;&amp;lt;/Method&amp;gt;&amp;quot;&amp;nbsp; both I have tried still same issue.&lt;/p&gt;&lt;p&gt;&amp;nbsp;The error message is &amp;quot;0x81020030Invalid file name.\n\nThe file name you specified could not be used.&amp;nbsp; It may be the name of an existing file or directory, or you may not have permission to access the file.&amp;quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;&lt;p&gt;SK.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: UpdateListItem web service not working for "Delete" but working for "Update"</title><link>https://www.infopathdev.com:443/forums/thread/105088.aspx</link><pubDate>Fri, 08 Jan 2016 16:02:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105088</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105088.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=105088</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So, using U2U CAML Query Editor (my favorite free tool for this) I tested a batch that looks like this:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;&amp;lt;Batch PreCalc=&amp;#39;TRUE&amp;#39; OnError=&amp;#39;Continue&amp;#39;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;Method ID=&amp;#39;1&amp;#39; Cmd=&amp;#39;Delete&amp;#39;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;#39;ID&amp;#39;&amp;gt;108&amp;lt;/Field&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;FileRef&amp;quot;&amp;gt;http://&lt;em&gt;server&lt;/em&gt;/Shared Documents/Stages.xml&amp;lt;/Field&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/Method&amp;gt;&lt;br /&gt;&amp;lt;/Batch&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p dir="ltr"&gt;And was able to delete&amp;nbsp;my file&amp;nbsp;successfully. The interesting thing was, originally my&amp;nbsp;URL was encoded - &amp;nbsp;Shared%20Documents instead of Shared Documents - and the query returned an error of &amp;quot;Invalid file name&amp;quot;. So maybe check your URL variable?&lt;/p&gt;</description></item><item><title>Re: UpdateListItem web service not working for "Delete" but working for "Update"</title><link>https://www.infopathdev.com:443/forums/thread/105086.aspx</link><pubDate>Fri, 08 Jan 2016 15:40:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105086</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105086.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=105086</wfw:commentRss><description>So, your code sample in the text file has the Cmd in the Method as Update - if you use the same code and change to Delete, it doesn&amp;#39;t work? Can you run Fiddler while you try this in preview so you can see the response from the web service?</description></item><item><title>UpdateListItem web service not working for "Delete" but working for "Update"</title><link>https://www.infopathdev.com:443/forums/thread/105084.aspx</link><pubDate>Fri, 08 Jan 2016 11:26:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105084</guid><dc:creator>Sutharsni Karmegam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105084.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=105084</wfw:commentRss><description>Hi, 
I am trying to delete a form from SharePoint InfoPath Library by calling web service &amp;quot;UpdateListItem&amp;quot; method but the form isn&amp;#39;t getting deleted, whereas on the same command I tried to Update and it is successful. 

Here is my code for calling web service method.

StringBuilder sb = new StringBuilder();
sb.Append(&amp;quot;Method ID=&amp;#39;1&amp;#39; Cmd=&amp;#39;Delete&amp;#39;&amp;quot;);
sb.Append(String.Format(&amp;quot;Field Name=\ID\&amp;quot; + id_value + &amp;quot;/Field&amp;quot;));
sb.Append(String.Format(&amp;quot;Field Name=\&amp;quot;FileRef\&amp;quot; + URL +&amp;quot;/Field&amp;quot;));
sb.Append(&amp;quot;/Method&amp;quot;);

System.Xml.XmlElement elBatch = xmlDoc.CreateElement(&amp;quot;Batch&amp;quot;);
elBatch.SetAttribute(&amp;quot;OnError&amp;quot;, &amp;quot;Continue&amp;quot;);
elBatch.SetAttribute(&amp;quot;PreCalc&amp;quot;, &amp;quot;TRUE&amp;quot;);
elBatch.SetAttribute(&amp;quot;ListVersion&amp;quot;, &amp;quot;1&amp;quot;);
elBatch.SetAttribute(&amp;quot;ViewName&amp;quot;, &amp;quot;view_id without &amp;#39;{}&amp;#39; braces&amp;quot;);
elBatch.InnerXml = sb.ToString();

XmlNode ndReturn = client.UpdateListItems(ListID, elBatch);

Certain tags are not shown in command please get the actual code in attachment.

Any help will be greatly appreciated.

Thanks,
SK.</description></item></channel></rss>