Click to Rate and Give Feedback
Community Content
In this section
Statistics Annotations (3)
Collapse All/Expand All Collapse All
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
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

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.

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;
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker