Share via


GetWeb Method

The GetWeb method of the Webs service returns properties of a site (for example, name, description, and theme).

Parameters

webUrl   A string that contains the absolute URL of the site. To return information about the current site, a period (".") can be passed as the value of this parameter.

Return Value

An XML fragment in the following form that can be assigned to a System.Xml.XmlNode object:

<Web Title="Site_Name" Url="http://Server_Name/sites/Site_Name/Subsite_Name"
Description="Description" Language="1033" Theme="Theme" xmlns="http://schemas.microsoft.com/sharepoint/soap/" />

Example

The following code example displays the title of the specified site.

This example requires that a using (C#) or Imports (Visual Basic .NET) directive be included for the System.Xml namespace.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name/[sites/][Site_Name/]_vti_bin/Webs.asmx