Share via


Meetings.UpdateMeetingFromICal - Méthode

Mises à jour de la réunion des informations stockées dans un format de calendrier Internet (iCal).

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

Syntaxe

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

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

Paramètres

  • icalText
    Type : System.String

    La représentation iCal de la réunion mise à jour.

  • ignoreAttendees
    Type : System.Boolean

    true pour ignorer le traitement des informations sur le participant iCal ; dans le cas contraire, false.

Valeur renvoyée

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

<?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>
<UpdateMeetingFromICalResponse xmlns=
    "https://schemas.microsoft.com/sharepoint/soap/meetings/">
<UpdateMeetingFromICalResult>
<UpdateMeetingFromICal>
<AttendeeUpdateStatus Code="0" Detail="" ManageUserPage="" />
</UpdateMeetingFromICal></UpdateMeetingFromICalResult>
</UpdateMeetingFromICalResponse>
</soap:Body></soap:Envelope>

Si les participants sont traités dans cet appel, et il existe des problèmes pendant le traitement de participant, cette méthode retourne des informations supplémentaires. En particulier, il détecte lorsque tous les utilisateurs ne peuvent pas être résolus et lorsque la limite de quota est dépassée.
Si tous les utilisateurs ne peuvent pas être résolus, le code d'erreur de l'erreur renvoyée est 12, et la Page Gérer les utilisateurs pointe vers aclinv.aspx, ainsi qu'une liste des utilisateurs qui ne peut pas être résolu, comme indiqué dans la réponse ci-dessous.

<?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><UpdateMeetingFromICalResponse
xmlns="https://schemas.microsoft.com/sharepoint/soap/meetings/">
<UpdateMeetingFromICalResult>
<UpdateMeetingFromICal>
<AttendeeUpdateStatus Code="12" Detail="Some users could not
automatically be granted permissions to the workspace."
ManageUserPage=
"http://myServer/Test Meeting/_layouts/1033/aclinv.aspx?
users=bademail1@bad.com,bademail2@bad.com&;rights=Contributor" />
</UpdateMeetingFromICal>
</UpdateMeetingFromICalResult>
</UpdateMeetingFromICalResponse>
</soap:Body>
</soap:Envelope>
Si la limite de quota est dépassée, le code d'erreur de l'erreur renvoyée est 11, et la Page Gérer les utilisateurs pointe vers user.aspx (par exemple, pour « http://myserver/Test Meeting/_layouts/1033/user.aspx »).

Exceptions

Exception Condition
SoapException

Cette méthode fonctionne uniquement avec les sites espace de travail de réunion. Si vous appelez cette méthode par rapport à un site non - espace de travail, cette méthode génère une exception SOAP qui ressemble à ceci :

<?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 add a meeting to a Meeting Workspace

could not be completed. The specified location is not

a Meeting Workspace. Specify a different location or

contact the Web site administrator.</errorstring>

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

</detail>

</soap:Fault>

</soap:Body>

</soap:Envelope>

La méthode retourne l'exception précédente si une chaîne vide iCal est passée dans le paramètre iCalText . Le code d'erreur est 0 x 00000005, et la chaîne d'erreur est comme suite: « votre tentative de mettre à jour le site espace de travail de réunion a échoué. Il n'a aucune information à envoyer à l'espace de travail. »

Remarques

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

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

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

<UpdateMeetingFromICal xmlns=

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

<icalText>string</icalText>

<ignoreAttendees>boolean</ignoreAttendees>

</UpdateMeetingFromICal>

</soap:Body>

</soap:Envelope>

Format de la réponse SOAP   Voici un exemple de réponse SOAP. Remplacez les espaces réservés avec les valeurs de retour 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>
    <UpdateMeetingFromICalResponse xmlns=
        "https://schemas.microsoft.com/sharepoint/soap/meetings/">
      <UpdateMeetingFromICalResult>
        <xsd:schema>schema</xsd:schema>xml
      </UpdateMeetingFromICalResult>
    </UpdateMeetingFromICalResponse>
  </soap:Body>
</soap:Envelope>

Voir aussi

Référence

Meetings classe

Meetings - Membres

WebSvcMeetings - Espace de noms