SharePoint2007Provider::GetSiteTemplates

This procedure of the Sites service returns information about the collection of site definitions and site templates on the virtual server.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<siteGUID>

Yes

The globally unique identifier (GUID) of the site collection.

<lcid>

Yes

A 32-bit unsigned integer that specifies the locale identifier (lcid) (for example, 1033 in English).

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="GetSiteTemplates" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>55049baf-c989-489c-8a8a-03c58ef1989c</siteGUID> 
            <lcid>1033</lcid> 
         </executeData> 
         <after source="executeData" destination="data" mode="merge" /> 
      </execute> 
   </procedure> 
</request>

Example XML Response

A template array whose elements provide fields containing information about each template.

<response> 
   <data> 
      <templates> 
         <template id="0" name="GLOBAL#0" isCustom="false" isHidden="true" isUnique="false"> 
            <title>Global template</title> 
            <description>This template is used for initializing a new site.</description> 
            <imageUrl>/_layouts/1033/</imageUrl> 
         </template> 
         <template id="1" name="STS#0" isCustom="false" isHidden="false" isUnique="false"> 
            <title>Team Site</title> 
            <description>A site for teams to quickly organize, author, and share information. It provides a document library, and lists for managing announcements, calendar items, tasks, and discussions.</description> 
            <imageUrl>/_layouts/images/stsprev.png</imageUrl> 
         </template> 
      </templates> 
   </data> 
</response>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0