Dws Class (Document Workspace)
Exposes methods for managing Document Workspace sites and the data they contain.

Web Service: Document WorkspaceWeb Reference: http://<Site>/_vti_bin/Dws.asmx
Syntax

Visual Basic (Declaration)
<WebServiceBindingAttribute(Name:="DwsSoap", Web Service:="http://schemas.microsoft.com/sharepoint/soap/dws/")> _
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
<DesignerCategoryAttribute("code")> _
<DebuggerStepThroughAttribute> _
Public Class Dws
    Inherits SoapHttpClientProtocol
Visual Basic (Usage)
Dim instance As Dws
C#
[WebServiceBindingAttribute(Name="DwsSoap", Web Service="http://schemas.microsoft.com/sharepoint/soap/dws/")] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
[DesignerCategoryAttribute("code")] 
[DebuggerStepThroughAttribute] 
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:

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.

Example

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.

Visual Basic
Dim dwsWebService As server.Dws = New server.Dws()
dwsWebService.Credentials = 
    System.Net.CredentialCache.DefaultCredentials
C#
name.Dws dwsWebService = new name.Dws();
dwsWebService.Credentials = 
    System.Net.CredentialCache.DefaultCredentials;
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
       System.Web.Services.Protocols.WebClientProtocol
         System.Web.Services.Protocols.HttpWebClientProtocol
           System.Web.Services.Protocols.SoapHttpClientProtocol
            Document Workspace.Dws
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.
See Also

Tags :


Page view tracker