SharePoint2007Provider::WebUrlFromPageUrl

This procedure returns the URL of the parent site for the specified page URL.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<siteGUID>

Yes

The globally unique identifier (GUID) of site collection.

<pageUrl>

Yes

A string that contains the absolute URL of the page.

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="WebUrlFromPageUrl" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>7dfd1ab9-d966-4b6a-92ca-d91e777c53f0</siteGUID> 
            <pageUrl>https://WSSFE:8888/sites/SPNSSite/Lists/Calendar/calendar.aspx</pageUrl> 
         </executeData> 
         <after source="executeData" destination="data" mode="merge" /> 
      </execute> 
   </procedure> 
</request>

Example XML Response

A string that contains the site URL.

<response> 
   <data> 
      <siteUrl>https://wssfe:8888/sites/SPNSSite</siteUrl> 
   </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::GetSiteAndWeb