SP Gugu: How to Programmatically change a list item's ContentType by WSS WebService?

Please, help! I can't find any information on MSDN under WSS3 webservices List.UpdateListItems topics

how to programmatically change a list item ContentTypeId ?

Calling SharePoint list service like: (adding a list item)

XmlElement elBatch = doc.CreateElement("Batch");

elBatch.SetAttribute("OnError", "Continue");

elBatch.SetAttribute("ListVersion", "2");

XmlElement el1 = doc.CreateElement("Method");

el1.SetAttribute("ID", "1");

el1.SetAttribute("Cmd", "New");

XmlElement field1 = doc.CreateElement("Field");

field1.SetAttribute("Name", "ID");

field1.InnerText = "New";

XmlElement field2 = doc.CreateElement("Field");

field2.SetAttribute("Name", "emp_no");

XmlNode response = listService.UpdateListItems("Tasks", elBatch);

[1634 byte] By [KonstantinT] at [2007-12-30]
# 1

the desition was found:

XmlElement field1 = doc.CreateElement("Field");

field1.SetAttribute("Name", "ContentType");

field1.InnerText = "theContentTypeName";

KonstantinTolmachov at 2007-9-5 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...
# 2

In order to update metadata you need to specify reference to the file that you want to update, here I found answer to my question:

http://www.codecomments.com/message376403.html

For me goal was to upload files to Sharepoint Programmatically and update metadata (Indexes, Column information) using Web Services.

AlexeyGorbunov at 2007-9-5 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Development and Programming...
# 3
What is the corresponding way to set an SPListItem's ContentType directly using the WSS object model?

SharePoint Products and Technologies

Site Classified