Elczar Adame's Shared Points on SharePoint


 

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!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: