Share via


Meetings.GetMeetingWorkspaces Method

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

Namespace:  [Meetings Web service]
Web service reference: http://Site/_vti_bin/Meetings.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/meetings/GetMeetingWorkspaces", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/meetings/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/meetings/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetMeetingWorkspaces ( _
    recurring As Boolean _
) As XmlNode
'Usage
Dim instance As Meetings
Dim recurring As Boolean
Dim returnValue As XmlNode

returnValue = instance.GetMeetingWorkspaces(recurring)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/meetings/GetMeetingWorkspaces", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/meetings/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/meetings/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode GetMeetingWorkspaces(
    bool recurring
)

Parameters

  • recurring
    Type: System.Boolean

    true if the meeting is recurring; otherwise, false.

Return Value

Type: System.Xml.XmlNode
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="https://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="https://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, 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 https://Server_Name/[sites/][Site_Name/]_vti_bin/Meetings.asmx.

Examples

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: "https://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="https://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<GetMeetingWorkspaces xmlns=

"https://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="https://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetMeetingWorkspacesResponse xmlns=
        "https://schemas.microsoft.com/sharepoint/soap/meetings/">
      <GetMeetingWorkspacesResult>
        <xsd:schema>schema</xsd:schema>xml</GetMeetingWorkspacesResult>
    </GetMeetingWorkspacesResponse>
  </soap:Body>
</soap:Envelope>

See Also

Reference

Meetings Class

Meetings Members

Meetings Web Service