This topic has not yet been rated - Rate this topic

Meetings.GetMeetingWorkspaces Method

Windows SharePoint Services 3
Lists the Meeting Workspace sites located in the root directory of the specified server running Windows SharePoint Services at the specified site location.

Web Service: MeetingsWeb Reference: http://<Site>/_vti_bin/Meetings.asmx
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/meetings/GetMeetingWorkspaces", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/meetings/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/meetings/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public XmlNode GetMeetingWorkspaces (
	bool recurring
)

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>

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, this method returns empty and single instance meetings. If recurring is set to true, this method returns only empty Meeting Workspace sites, because recurring meetings can be linked only to empty Meeting Workspace sites.

To access the Meetings service and its methods, set a Web reference to http://Server_Name/[sites/][Site_Name/]_vti_bin/Meetings.asmx.

The following code lists the Meeting Workspace sites existing on the server. ServerURLTextBox is an interface element that is on a form in the Visual Basic 2005 project.

Dim ws As New mywss001.Meetings()
Dim myCache As New System.Net.CredentialCache()
    

Private Sub ListMWS_Click(ByVal sender As System.Object, ByVal e As 
    System.EventArgs) Handles ListMWS.Click
 ws.Credentials = myCache.DefaultCredentials()
 ws.Url = ServerURLTextBox.Text
 If (ws.Url.EndsWith("/")) Then
  ws.Url = ws.Url.Remove(ws.Url.Length - 1, 1)
 End If

 ws.Url = ws.Url + "/_vti_bin/meetings.asmx"

 Dim GetMeetingWorkspacesResponse As System.Xml.XmlNode

 If (ws.Url <> "") Then
  GetMeetingWorkspacesResponse = ws.GetMeetingWorkspaces(True)
 End If

 Dim OuterXml As String
 OuterXml = GetMeetingWorkspacesResponse.OuterXml()
 MsgBox("OuterXml")

End Sub

SOAP Request Format   Following is a sample SOAP request. Replace the placeholders shown 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   Following is a sample SOAP response. Replace the placeholders shown 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>
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ