//For that we have to user (http://test/sites/xyz/_vti_bin/Lists.asmx.)ist web service
Web_Reference_Folder.Lists ListServiceName = new Web_Reference_Folder.Lists();
ListServiceName.Credentials= System.Net.CredentialCache.DefaultCredentials;
XmlNode lst = ListServiceName.AddList("List_Name","Description",100);
MessageBox.Show(lst.OuterXml);
//Same for library just use library code 101 instead of 100
//Other important template codes
/*Announcements
104
Contacts
105
Custom List
100
Custom List in Datasheet View
120
DataSources
110
Discussion Board
108
Document Library
101
Events
106
Form Library
115
Issues
1100
Links
103
Picture Library
109
Survey
102
Tasks
107
*/This code is for to create List or Library using Sharepoint ASMX web services.
