<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sharepoint Server &#187; Web Services</title>
	<atom:link href="http://www.fivenumber.com/tag/web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fivenumber.com</link>
	<description>It&#039;s all about SharePoint</description>
	<lastBuildDate>Tue, 03 Jan 2012 16:33:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.fivenumber.com</link>
<url>http://www.fivenumber.com/wp-content/mbp-favicon/5.jpg</url>
<title>Sharepoint Server</title>
</image>
		<item>
		<title>A quick look on WSS Out Of Box web services &#8211; Part 2</title>
		<link>http://www.fivenumber.com/a-quick-look-on-wss-out-of-box-web-services-part-2/</link>
		<comments>http://www.fivenumber.com/a-quick-look-on-wss-out-of-box-web-services-part-2/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 09:31:08 +0000</pubDate>
		<dc:creator>G Vijai Kumar</dc:creator>
				<category><![CDATA[MOSS - Object Model]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.fivenumber.com/?p=708</guid>
		<description><![CDATA[In my previous post you can have a quick look on WSS Out Of Box web services – Part 1 In this post once again I want to update few WSS web service handy programs with minimum lines of code. Before executing the code first of all add web reference http://servername:port/_vti_bin/Webs.asmx In this example I [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post you can have <a title="A quick look on WSS out of box web services - Part 2" href="http://www.fivenumber.com/a-quick-look-on-wss-out-of-box-web-services/" target="_blank">a quick look on WSS Out Of Box web services – Part 1</a></p>
<p>In this post once again I want to update few WSS web service handy programs with minimum lines of code.</p>
<p>Before executing the code first of all add web reference  http://servername:port/_vti_bin/Webs.asmx<br />
In this example I have given the web reference folder name as myWebswebservice</p>
<p><strong>Show all subsites:</strong></p>
<pre class="brush: csharp; title: ; notranslate"> static void Main(string[] args)
        {
myWebswebservice.Webs allWebs = new myWebswebservice.Webs();
//credentials for password based authentication
//System.Net.NetworkCredential mycredentials = new System.Net.NetworkCredential(&quot;g.vijaikumar&quot;, &quot;mypassword&quot;, &quot;fivenumber&quot;);
//allWebs.Credentials = mycredentials;
//using system credentials of the application
allWebs.Credentials = System.Net.CredentialCache.DefaultCredentials;
try
{
string webTitle = null;
XmlNode myNode = allWebs.GetAllSubWebCollection();
XmlNodeList nodes = myNode.SelectNodes(&quot;*&quot;);
foreach (XmlNode node in nodes)
{
Console.WriteLine(webTitle + node.Attributes[&quot;Title&quot;].Value);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
Console.WriteLine(&quot;Press any key to continue.....&quot;);
Console.ReadLine();
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fivenumber.com/a-quick-look-on-wss-out-of-box-web-services-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A quick look on WSS Out Of Box web services</title>
		<link>http://www.fivenumber.com/a-quick-look-on-wss-out-of-box-web-services/</link>
		<comments>http://www.fivenumber.com/a-quick-look-on-wss-out-of-box-web-services/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 07:40:38 +0000</pubDate>
		<dc:creator>G Vijai Kumar</dc:creator>
				<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://www.fivenumber.com/?p=593</guid>
		<description><![CDATA[Here I am going to show you how to create/delete site collection and create/delete list using WSS OOB webservices Creating site collection static void Main(string[] args) { AdminService.Admin admService = new AdminService.Admin(); admService.Credentials = System.Net.CredentialCache.DefaultCredentials; try { admService.CreateSite("http://fivenumber:5/sites/someothername", "SomeotherTitle", "SomeotherDescription", 1033, "STS#0", "Fivenumber\\g.vijaikumar", "GVijaiKumar", "g.vijaikumar@fivenumber.com", "", ""); Console.WriteLine("Site Collection Created:"); } catch (System.Web.Services.Protocols.SoapException ex) { [...]]]></description>
			<content:encoded><![CDATA[<p>Here I am going to show you how to create/delete site collection and create/delete list using WSS OOB webservices</p>
<p><strong>Creating site collection</strong></p>
<pre name="code" class="c-sharp">
static void Main(string[] args)
{

AdminService.Admin admService = new AdminService.Admin();
admService.Credentials = System.Net.CredentialCache.DefaultCredentials;
try
{
admService.CreateSite("http://fivenumber:5/sites/someothername", "SomeotherTitle", "SomeotherDescription", 1033, "STS#0", "Fivenumber\\g.vijaikumar", "GVijaiKumar", "g.vijaikumar@fivenumber.com", "", "");
Console.WriteLine("Site Collection Created:");
}
catch (System.Web.Services.Protocols.SoapException ex)
{
Console.WriteLine(ex);
}

Console.WriteLine("Press any key to continue.....");
Console.ReadLine();
}
</pre>
<p><strong>Deleting site collection</strong></p>
<pre name="code" class="c-sharp">
static void Main(string[] args)
{

AdminService.Admin admService = new AdminService.Admin();
admService.Credentials = System.Net.CredentialCache.DefaultCredentials;
try
{
admService.DeleteSite("http://fivenumber:5/sites/someothername");
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}
</pre>
<p><strong>Creating List</strong></p>
<pre name="code" class="c-sharp">
static void Main(string[] args)
{

List50.Lists listService = new List50.Lists();
listService.Credentials = System.Net.CredentialCache.DefaultCredentials;
try
{
XmlNode ndList = listService.AddList("List_Name", "List_Description", 100);
Console.WriteLine("List Created:");
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}
</pre>
<p><strong>Deleting List</strong></p>
<pre name="code" class="c-sharp">
static void Main(string[] args)
{

List50.Lists listService = new List50.Lists();
listService.Credentials = System.Net.CredentialCache.DefaultCredentials;
try
{
listService.DeleteList("List_Name");//, "List_Description", 100);
Console.WriteLine("List Deleted:");
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fivenumber.com/a-quick-look-on-wss-out-of-box-web-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

