Elczar Adame's Shared Points on SharePoint

Archive for October, 2008

SharePoint Auditing


 

Microsoft Office SharePoint Server 2007 is bundled with several audit reports valuable to analyze activity across a site collection, or a specific library or list. With the Configure Audit Settings, we could construct the site collection level auditing, and with Information Management Policy we can define the library level policy. The reports can be readily saved in a useful format for review.

The audit log captures the following information for the events that are selected to be audited, including:

1. Documents and Items

a. Opening or downloading documents, viewing items in lists, or viewing item properties

b. Editing items

c. Checking out or checking in items

d. Moving or copying items to another location in the site

e. Deleting or restoring items

2. Lists, Libraries, and Sites

a. Editing content types or columns

b. Searching site content

c. Editing users and permissions

Thanks…

SharePoint Usage Analytics


 

We must enable usage analytics to measure our SharePoint site usage and performance through the Site Usage Reports and Site Collection Usage Reports of Microsoft Office SharePoint Server 2007 or through Site Usage Reports provided by Microsoft Office SharePoint Designer 2007.

In Windows SharePoint Services 3.0/Microsoft Office SharePoint Server 2007, the following are the usage analytical reports:

Site Usage Reports:

1. Site Usage Summary

2. Requests

3. Users

4. Referrers

5. Destination Pages

Site Collection Usage Reports:

1. Site Usage Summary

2. Requests

3. Users

4. Referrers

5. Destination Pages

6. Search Queries

7. Search Results

The Microsoft Office SharePoint Designer 2007 provides the following SharePoint usage reports:

1. Usage Summary

2. Page Hits

3. Visiting Users

4. Operating Systems

5. Browsers

6. Referring Domains and URLs

7. Search Strings

To enable usage analytics, we need to perform the following:

1. Enable Windows SharePoint Services usage logging

2. Enable the usage reporting shared service

3. Activate the reporting feature

 

 

That’s it! Thanks…

WSS 3.0 Meetings Web Service


 

On my previous article, I have mentioned of the object models of Windows SharePoint Services Web services designed for creating solutions that work with Windows SharePoint Services. One of the Web services I have tabulated on the same piece was Meetings Web service, the spotlight of this post.

The following table lists the Web methods provided by the Meetings Web service:

 

AddMeeting

RemoveMeeting

AddMeetingFromICal

RestoreMeeting

CreateWorkspace

SetAttendeeResponse

DeleteWorkspace

SetWorkspaceTitle

GetMeetingWorkspaces

UpdateMeeting

GetMeetingsInformation

UpdateMeetingFromICal

Now let us start the walkthrough.

1. Create a SharePoint Web application.

2. Create an ASP.NET Web application and add a Web reference addressed to http://<SharePoint Web application URL>/_vti_bin/Meetings.asmx. For demonstration purposes, let us name our Web reference as Proxy.

3. To add a meeting workspaces, write the following lines of code to an appropriate event:

Proxy.Meetings proxy = new Proxy.Meetings();

proxy.Credentials = CredentialCache.DefaultCredentials;

Proxy.TimeZoneInf timezone = new Proxy.TimeZoneInf();

XmlNode xmlnode = proxy.CreateWorkspace(<Meeting Workspace Name>, "MPS#0", System.UInt32.Parse("1033"), timezone);

NOTE: Make sure to reference System.Net and System.Xml namespaces.

4. To get the list of meeting workspaces, write the following lines of code to an appropriate event:

Proxy.Meetings proxy = new Proxy.Meetings();

proxy.Credentials = CredentialCache.DefaultCredentials;

XmlNode xmlnode = proxy.GetMeetingWorkspaces(true);

XmlNodeReader xmlnodereader = new XmlNodeReader(xmlnode);

DataSet dataset = new DataSet();

dataset.ReadXml(xmlnodereader);

xmlnodereader.Close();

gvwMeeting.DataSource = dataset.Tables[0];

gvwMeeting.DataBind();

5. To delete of meeting workspaces, write the following lines of code to an appropriate event:

Proxy.Meetings proxy = new Proxy.Meetings();

proxy.Credentials = CredentialCache.DefaultCredentials;

proxy.Url = "http://&lt;SharePoint Web application URL>/<Meeting Workspace Name>/_vti_bin/meetings.asmx";

proxy.DeleteWorkspace();

That’s it…Thanks!

WSS 3.0 Lists Web Service


 

The Windows SharePoint Services Web services provided by the Microsoft.SharePoint.SoapServer namespace includes methods that provide Microsoft .NET Framework developers with object models for creating solutions that work with Windows SharePoint Services remotely from a client or custom application. They are defined through the server-side object model of the Microsoft.SharePoint assembly, and their design is optimized to reduce the number of roundtrips transacted between client computer and server.

Most Web services are provided through the /_vti_bin virtual directory, which maps to the \\Program Files\Common Files\Microsoft Shared\web Server extensions\12\ISAPI physical directory. The Administration Web service is provided through the /_vti_adm virtual directory, which maps to \\Program Files\Common Files\Microsoft Shared\web Server extensions\12\ ADMISAPI physical directory.

The following table lists the available Web services:

 

Administration Service (admin.asmx)

Permissions Service (permissions.asmx)

Alerts Service (alerts.asmx)

Site Data Service (sitedata.asmx)

Copy Service (copy.asmx)

Site Service (sites.asmx)

Document Workspace Service (dws.asmx)

Search Service (spsearch.asmx)

Forms Service (forms.asmx)

Users and Groups Services (usergroup.asmx)

Imaging Service (imaging.asmx)

Versions Service (versions.asmx)

List Data Retrieval Service (dspsts.asmx)

Views Service (views.asmx)

Lists Service (lists.asmx)

Web Part Pages Service (webpartpages.asmx)

Meetings Service (meetings.asmx)

Webs Service (webs.asmx)

People Service (People.asmx)

 

As titled, this piece will focus on WSS 3.0 Lists Service. The following table lists the Web methods provided by the service to interact with our SharePoint list libraries:

 

AddAttachment

GetListAndView

AddDiscussionBoardItem

GetListCollection

AddList

GetListContentType

AddListFromFeature

GetListContentTypes

ApplyContentTypeToList

GetListItemChanges

CheckInFile

GetListItemChangesSinceToken

CheckOutFile

GetListItems

CreateContentType

GetVersionCollection

DeleteAttachment

UndoCheckOut

DeleteContentType

UpdateContentType

DeleteContentTypeXmlDocument

UpdateContentTypeXmlDocument

DeleteList

UpdateContentTypesXmlDocument

GetAttachmentCollection

UpdateList

GetList

UpdateListItems

Now let us start with the walkthrough.

1. Create a SharePoint Web application.

2. Create an ASP.NET Web application and add a Web reference addressed to http://<SharePoint Web application URL>/_vti_bin/Lists.asmx. For demonstration purposes, let us name our Web reference as Proxy.

3. Write the following lines of code to an appropriate event:

Proxy.Lists proxy = new Proxy.Lists();

proxy.Credentials = CredentialCache.DefaultCredentials;

XmlNode xmlnode = proxy.GetListItems("Shared Documents", null, null, null, null, null, null);

XmlNodeReader xmlnodereader = new XmlNodeReader(xmlnode);

DataSet dataset = new DataSet();

dataset.ReadXml(xmlnodereader);

xmlnodereader.Close();

gvwList.DataSource = dataset.Tables[1];

gvwList.DataBind();

Thanks…

Tag Cloud