March 2008 Entries

SharePoint List WebService to Insert Item

Using the SharePoint List WebService to insert an item into a list... WebService Reference: http://<servername>/_... try { ws_list.Lists list = new ws_list.Lists(); list.Credentials = new System.Net.NetworkCredentia... "password", "domain"); XmlDocument doc = new XmlDocument(); XmlElement batch_element = doc.CreateElement("Batch"); string item = "<Method ID=\"1\" Cmd=\"New\">" + "<Field Name=\"ID\">New</Fiel... + "<Field Name=\"Title\">This is ......