Dws.UpdateDwsData Method

Performs a batch update of items and data for the Document Workspace site.

Namespace:  websvcDocumentWorkspace
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/dws/UpdateDwsData", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/dws/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/dws/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function UpdateDwsData ( _
    updates As String, _
    meetingInstance As String _
) As String
'Usage
Dim instance As Dws
Dim updates As String
Dim meetingInstance As String
Dim returnValue As String

returnValue = instance.UpdateDwsData(updates, _
    meetingInstance)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/dws/UpdateDwsData", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/dws/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/dws/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string UpdateDwsData(
    string updates,
    string meetingInstance
)

Parameters

  • updates
    Type: System.String
    String. The list of item updates, in Collaborative Application Markup Language (CAML) batch update format. For example, use the following batch update to save a new task in the task list of the Document Workspace site.

    <?xml version="1.0" encoding="UTF-8"?>
    <ows:Batch OnError="Continue" xmlns:ows="http://tempuri.org/">
    <SetVar Name="DatesInGregorian">TRUE</SetVar>
    <SetVar Name="TimesInUTC">TRUE</SetVar>
    <Method ID="New">
    <SetList Scope="Request">{EA448C91-16D4-411E-AC42-7BA092641E60}</SetList>
    <SetVar Name="Cmd">Save</SetVar>
    <SetVar Name="ID">New</SetVar>
    <SetVar Name="urn:schemas-microsoft-com:office:office#Title">Test</SetVar>
    <SetVar Name="urn:schemas-microsoft-com:office:office#AssignedTo">1</SetVar>
    <SetVar Name="urn:schemas-microsoft-com:office:office#Status">Not Started</SetVar>
    <SetVar Name="urn:schemas-microsoft-com:office:office#Priority">(2) Normal</SetVar>
    <SetVar Name="urn:schemas-microsoft-com:office:office#DueDate">2003-02-11T16:00:00Z</SetVar>
    <SetVar Name="urn:schemas-microsoft-com:office:office#Body">&lt;div&gt;This is the description.&lt;/div&gt;</SetVar>
    </Method>
    </ows:Batch>
    
  • meetingInstance
    Type: System.String
    String. Optional instance of a recurring meeting. The meetingInstance parameter applies to the entire batch update and specifies the meeting instance to which the UpdateDwsData method adds new list items.

Return Value

Type: System.String
A string that returns an empty <Result/> tag when successful.

Exceptions

Exception Condition
[DwsError.Conflict(4)]

Another user modified the specified item.

[DwsError.ItemNotFound(5)]

Could not find the specified item.

[DwsError.ListNotFound(7)]

Could not find the specified list.

[DwsError.QuoteExceeded(14)]

Exceeds the quota for the user.

Remarks

The UpdateDwsData method performs a batch update on items in the Document Workspace site, supplying data by using the CAML batch update format.

The UpdateDwsData method is used by Microsoft Office applications that support the Shared Attachments feature.

See Also

Reference

Dws Class

Dws Members

websvcDocumentWorkspace Namespace