<?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>Microsoft 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>Fri, 28 May 2010 09:21:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
<link>http://www.fivenumber.com</link>
<url>http://www.fivenumber.com/wp-content/mbp-favicon/5.jpg</url>
<title>Microsoft 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 have given [...]]]></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><br />
 static void Main(string[] args)<br />
        {<br />
myWebswebservice.Webs allWebs = new myWebswebservice.Webs();<br />
//credentials for password based authentication<br />
//System.Net.NetworkCredential mycredentials = new System.Net.NetworkCredential(&#8220;g.vijaikumar&#8221;, &#8220;mypassword&#8221;, &#8220;fivenumber&#8221;);<br />
//allWebs.Credentials = mycredentials;<br />
//using system credentials of the application<br />
allWebs.Credentials = System.Net.CredentialCache.DefaultCredentials;<br />
try<br />
{<br />
string webTitle = null;<br />
XmlNode myNode = allWebs.GetAllSubWebCollection();<br />
XmlNodeList nodes = myNode.SelectNodes(&#8220;*&#8221;);<br />
foreach (XmlNode node in nodes)<br />
{<br />
Console.WriteLine(webTitle + node.Attributes["Title"].Value);<br />
}<br />
}<br />
catch (Exception ex)<br />
{<br />
Console.WriteLine(ex.ToString());<br />
}<br />
Console.WriteLine(&#8220;Press any key to continue&#8230;..&#8221;);<br />
Console.ReadLine();<br />
}</p>
]]></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)
{
Console.WriteLine(ex);
}

Console.WriteLine("Press any key to continue.....");
Console.ReadLine();
}

Deleting site collection

static void Main(string[] args)
{

AdminService.Admin admService = new [...]]]></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>
