Share via


Meetings.GetMeetingsInformation - Méthode

Répertorie les langues et les modèles pris en charge par le serveur spécifié exécutant Windows SharePoint Services. Il indique également si l'appelant a la ManageSubweb sur le site d'espace de travail de réunion et affiche d'autres paramètres de l'espace de travail, tels que l'accès anonyme, des autorisations uniques, le nombre de réunion et AllAuthenticatedUsers.

Espace de noms :  WebSvcMeetings
Assembly :  STSSOAP (dans STSSOAP.dll)

Syntaxe

'Déclaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/meetings/GetMeetingsInformation", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/meetings/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/meetings/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetMeetingsInformation ( _
    requestFlags As UInteger, _
    lcid As UInteger _
) As XmlNode
'Utilisation
Dim instance As Meetings
Dim requestFlags As UInteger
Dim lcid As UInteger
Dim returnValue As XmlNode

returnValue = instance.GetMeetingsInformation(requestFlags, _
    lcid)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/meetings/GetMeetingsInformation", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/meetings/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/meetings/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode GetMeetingsInformation(
    uint requestFlags,
    uint lcid
)

Paramètres

  • requestFlags
    Type : System.UInt32

    Peut être une ou plusieurs des éléments suivants les indicateurs OR-liées par or :

  • lcid
    Type : System.UInt32

    Le LCID (identificateur de paramètres régionaux) à laquelle vous voulez limiter les résultats.

Valeur renvoyée

Type : System.Xml.XmlNode
Microsoft.SharePoint.SoapServer.SoapXml qui contient les éléments suivants :

<MeetingsInformation>
    <AllowCreate>True</AllowCreate>
    <ListTemplateLanguages><LCID>1033</LCID></ListTemplateLanguages>
    <ListTemplates>
        <Template Name="MPS#0" Title="Basic Meeting Workspace" Id="2" 
            Description="All the basics to plan, organize and track 
            your meeting.  This Meeting Workspace contains the 
            following lists:  Objectives, Attendees and Agenda." 
            ImageUrl="http://sturton2g/_layouts/1033/images/
                basic.gif" />
        <Template Name="MPS#1" Title="Blank Meeting Workspace" Id="2" 
            Description="A blank Meeting Workspace for you to customize 
            based on your requirements." 
            ImageUrl="http://sturton2g/_layouts/1033/images/
                blank.gif" />
        <Template Name="MPS#2" Title="Decision Meeting Workspace" 
            Id="2" Description="A Meeting Workspace in which to review 
            relevant documents and record decisions.  This Meetings 
            Workspace contains the following lists:  Objectives, 
            Attendees, Agenda, Document Libraries, Tasks and 
            Decisions." ImageUrl="http://sturton2g/_layouts/1033/
                images/decision.gif" />
        <Template Name="MPS#3" Title="Social Meeting Workspace" Id="2" 
            Description="A planning tool for social occasions, 
            featuring a discussion board and a picture library to post 
            pictures of the event.  This Meeting Workspace contains the 
            following lists and webparts: Attendees, Directions, 
            Weather, Image/Logo, Things To Bring, Discussions and a 
            Picture Library." ImageUrl="http://sturton2g/_layouts/1033/
                images/social.gif" />
        <Template Name="MPS#4" Title="Multipage Meeting Workspace" 
            Id="2" Description="All the basics to plan, organize and 
            track your meeting with multiple pages.  This Meeting 
            Workspace contains the following lists:  Objectives, 
            Attendees and Agenda in addition to two blank pages for you 
            customize based on your requirements." 
            ImageUrl="http://sturton2g/_layouts/1033/images/
                training.gif" />
    </ListTemplates>
     <WorkspaceStatus UniquePermissions="true" MeetingCount="0" 
        AnonymousAccess="false" AllowAuthenticatedUsers="false" />
</MeetingsInformation>"

Exceptions

Exception Condition
SoapException

Si vous incorporez l'indicateur canCreateMeetings dans votre demande et publier sur un site non - espace de travail, l'exception SOAP suivante est retournée :

<?xml version="1.0" encoding="utf-8"?>

<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>

<soap:Fault>

<faultcode>soap:Server</faultcode>

<faultstring>Exception of type

Microsoft.SharePoint.SoapServer.SoapServerException was

thrown.</faultstring>

<detail>

<errorstring xmlns=

"https://schemas.microsoft.com/sharepoint/soap/">

Your attempt to delete a Meeting Workspace site

could not be completed. The specified location

is not a Meeting Workspace site..</errorstring>

<errorcode xmlns="https://schemas.microsoft.com/sharepoint/soap/">0x00000004</errorcode>

</detail>

</soap:Fault>

</soap:Body>

</soap:Envelope>

Le code d'erreur est 0 x 00000001, et l'attribut errorstring est "un site espace de travail de réunion existe déjà à l'emplacement spécifié. Veuillez spécifier un autre emplacement."

Remarques

La méthode GetMeetingsInformation vous permet de récupérer un grand nombre d'informations en une seule fois. Pour accéder à ses méthodes et le service Meetings , définissez une référence Web à https://Server_Name/ [sites /] [Site_Name/] _vti_bin/Meetings.asmx.

Exemples

Le code suivant retourne les informations de réunion à partir du serveur. ServerURLTextBox est un élément d'interface qui se trouve sur un formulaire dans le projet Visual Basic 2005.

Private Sub MeetingInfo_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 GetMeetingInfoResponse As System.Xml.XmlNode

 If (ws.Url <> "") Then
  GetMeetingInfoResponse = 
    ws.GetMeetingsInformation(System.UInt32.Parse("1"), 
    System.UInt32.Parse("1033"))
 End If

 Dim OuterXml As String
 OuterXml = GetMeetingInfoResponse.OuterXml()
 MsgBox("OuterXml")
        
End Sub

Format de la demande SOAP   Voici un exemple de demande SOAP. Remplacez les espaces réservés illustrés par des valeurs réelles.

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/GetMeetingsInformation"

<?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>
    <GetMeetingsInformation xmlns=
        "https://schemas.microsoft.com/sharepoint/soap/meetings/">
      <requestFlags>unsignedInt</requestFlags>
      <lcid>unsignedInt</lcid>
    </GetMeetingsInformation>
  </soap:Body>
</soap:Envelope>

Format de la réponse SOAP   Voici un exemple de réponse SOAP. Remplacez les espaces réservés illustrés par des valeurs réelles.

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>
    <GetMeetingsInformationResponse xmlns=
        "https://schemas.microsoft.com/sharepoint/soap/meetings/">
      <GetMeetingsInformationResult>
        <xsd:schema>schema</xsd:schema>xml
            </GetMeetingsInformationResult>
    </GetMeetingsInformationResponse>
  </soap:Body>
</soap:Envelope>

Voir aussi

Référence

Meetings classe

Meetings - Membres

WebSvcMeetings - Espace de noms