SharePoint2007Provider::GetAllSubWebs

This procedure of the Webs service returns the titles and URLs of all sites within the current site collection.

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 Windows SharePoint Services site collection.

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="GetAllSubWebs" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>abf60659-4371-49cd-ade1-af59a1f13cd8</siteGUID> 
         </executeData> 
         <after source="executeData" destination="data" mode="merge" /> 
      </execute> 
   </procedure> 
</request>

Example XML Response

This call returns a collection of sub-webs in the format shown below.

<response> 
   <data> 
      <webs> 
         <web title="Test Site" url="https://wssfe:8888/sites/SPNSSite" /> 
         <web title="Test Sub Site" url="https://wssfe:8888/sites/SPNSSite/SPNSSubSite" /> 
      </webs> 
   </data> 
</response>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::GetWebs