var getListRequest = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + "<soap:Body>" + "<AddList xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\">" + "<listName>" + listName + "</listName>" + "<description>TestGenricList</description>" + "<templateID>100</templateID>" + "</AddList>" + "</soap:Body>" + "</soap:Envelope>";
a.Open("Post", GetRootUrl() + "/_vti_bin/Lists.asmx?op=AddList", false);
a.setRequestHeader("Content-Type:", "text/xml; charset=utf-8");
a.setRequestHeader("SOAPAction:", "http://schemas.microsoft.com/sharepoint/soap/AddList");
a.Send(getListRequest);
var xmlDoc = a.responseXML;
}
</script>
<input type"button" onclick="javascript:CreateListCountry();" Text="Create List"/>
Join the conversation! Your thoughts help the community grow.