GetMeetingWorkspaces Method
The GetMeetingWorkspaces method of the Meetings service lists the Meeting Workspace sites located in the root directory of the specified Microsoft Windows SharePoint Services server at the specified site location.
Parameters
recurring true if the meeting is recurring; otherwise, false.
Return Value
A Microsoft.SharePoint.SoapServer.SoapXml object that contains the Meeting Workspace sites in the root directory of the specified server. For example:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body> <GetMeetingWorkspacesResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/meetings/"> <GetMeetingWorkspacesResult> <MeetingWorkspaces> <Workspace Url="http://server_name/ManagersOnly" Title="ManagersOnly" /> <Workspace Url="http://server_name/ManagersOnly(1)" Title="ManagersOnly" /> <Workspace Url="http://server_name/Testing" Title="Testing" /> <Workspace Url="http://server_name/Marketing" Title="Marketing" /> <Workspace Url="http://server_name/Untitled" Title="Untitled" /> <Workspace Url="http://server_name/Untitled(1)" Title="Untitled" /> <MeetingWorkspaces /> </GetMeetingWorkspacesResult> </GetMeetingWorkspacesResponse> </soap:Body> </soap:Envelope>
Remarks
The GetMeetingWorkspaces method returns a list of Meeting Workspace sites that are immediately below the site you post to. The list includes only sites on which you have permissions to add meetings.
The recurring parameter indicates what type of meeting you intend to add to the Meeting Workspace site. If the recurring parameter is passed as false, empty and single instance meetings are returned. If recurring is set to true, this method returns only empty Meeting Workspace sites, since recurring meetings can only be linked to empty Meeting Workspace sites.
Example
The following code lists the Meeting Workspace sites existing on the server. Note that ServerURLTextBox is an interface element that is on a form in the Visual Basic .Net project.
SOAP Request Format
The following is a sample SOAP request. The placeholders shown need to be replaced with actual values.
POST /_vti_bin/meetings.asmx HTTP/1.1
Host: server_name
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/meetings/GetMeetingWorkspaces"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetMeetingWorkspaces xmlns="http://schemas.microsoft.com/sharepoint/soap/meetings/">
<recurring>boolean</recurring>
</GetMeetingWorkspaces>
</soap:Body>
</soap:Envelope>
SOAP Response Format
The following is a sample SOAP response. The placeholders shown will be replaced with actual return values.
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetMeetingWorkspacesResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/meetings/">
<GetMeetingWorkspacesResult>
<xsd:schema>schema</xsd:schema>xml</GetMeetingWorkspacesResult>
</GetMeetingWorkspacesResponse>
</soap:Body>
</soap:Envelope>
Requirements
Platforms: Microsoft Windows Server 2003
Web Reference: http://Server_Name/[sites/][Site_Name/]_vti_bin/Meetings.asmx