Elczar 的个人资料Sharing Points { }照片日志列表 工具 帮助

日志


10月9日

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://<SharePoint Web application URL>/<Meeting Workspace Name>/_vti_bin/meetings.asmx";

proxy.DeleteWorkspace();

That’s it...Thanks!

评论

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。
AdameElcza​r 在此页禁用了评论功能。

引用通告

此日志的引用通告 URL 是:
http://elczara.spaces.live.com/blog/cns!554EC06D366AC9D5!761.trak
引用此项的网络日志