Dws Class
Exposes methods for managing Document Workspace sites and the data they contain.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Web.Services.Protocols.WebClientProtocol
System.Web.Services.Protocols.HttpWebClientProtocol
System.Web.Services.Protocols.SoapHttpClientProtocol
[DWS Web service].Dws
Namespace: [DWS Web service]
Web service reference: http://Site/_vti_bin/DWS.asmx
Syntax
'Declaration
<WebServiceBindingAttribute(Name := "DwsSoap", Namespace := "https://schemas.microsoft.com/sharepoint/soap/dws/")> _
Public Class Dws _
Inherits SoapHttpClientProtocol
'Usage
Dim instance As Dws
[WebServiceBindingAttribute(Name = "DwsSoap", Namespace = "https://schemas.microsoft.com/sharepoint/soap/dws/")]
public class Dws : SoapHttpClientProtocol
Remarks
The Document Workspace Web service is used by 2007 Microsoft Office system applications that support the Document Management pane.
The methods exposed by this Web service provide functionality in the following categories:
Managing Document Workspace sites
Managing data for the Document Workspace site
Managing folders in the Document Workspace site
Managing documents in the Document Workspace site
Managing site users for the Document Workspace site
You must authenticate the user to the server (see Example), before calling the methods of the Document Workspace Web service.
The methods of the Document Workspace Web service operate on any type of SharePoint site, including sites that are not configured as Document Workspace sites. For example, you can use the GetDwsMetaData method to return information about any SharePoint site.
Examples
The following code example shows how to initialize a new instance of the Document Workspace Web service and authenticate the user to the server by using the credentials of the current user.
Dim dwsWebService As server.Dws = New server.Dws()
dwsWebService.Credentials =
System.Net.CredentialCache.DefaultCredentials
name.Dws dwsWebService = new name.Dws();
dwsWebService.Credentials =
System.Net.CredentialCache.DefaultCredentials;
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.