Windows Sharepoint Services 4.0 支持

适用于 BizTalk Server 的 Windows SharePoint Services 适配器提供与 BizTalk Server 2006 Windows SharePoint Services 适配器的特性/功能奇偶校验。 适用于 BizTalk Server 的 Windows SharePoint Services 适配器还支持 Windows SharePoint Services 4.0 提供的以下功能:

  • 将消息发送到 Windows SharePoint Services 4.0 博客网站。

  • 向 Windows SharePoint Services 4.0 Wiki 网站发送消息以及从中接收消息。

    BizTalk Server 的 Windows SharePoint Services 适配器不支持 Windows SharePoint Services 4.0 中提供的以下功能:

  • 回收站:BizTalk Server适配器的Windows SharePoint Services适配器不支持接收或向回收站显式发送消息。

  • 列表文件夹:BizTalk Server的Windows SharePoint Services适配器可以向列表发送邮件,但无法从列表接收消息。 Windows SharePoint Services 4.0 支持列表中的文件夹,但BizTalk Server的 Windows SharePoint Services 适配器不支持此功能。 因此,BizTalk Server的Windows SharePoint Services适配器无法在根文件夹以外的列表文件夹中创建列表项。

  • 以下部分更详细地介绍了如何使用BizTalk Server的 Windows SharePoint Services 适配器将消息发送到 Windows SharePoint Services 4.0 博客网站,以及如何向 和接收消息Windows SharePoint Services 4.0 Wiki 网站。

发送到 Windows SharePoint Services 4.0 博客网站

在 Windows SharePoint Services 4.0 博客网站中,文章存储在“帖子”列表中,文章类别在“类别”列表中定义。

若要将消息发布到 Windows SharePoint Services 4.0 博客网站,请在配置使用 Windows SharePoint Services 适配器的发送端口时,在适配器传输属性对话框中输入以下值:

属性
目标文件夹 URL 相对于 SharePoint 网站的发布内容列表的目标文件夹 URL,如“Lists/Posts”。
SharePoint 站点 URL Windows SharePoint Services 4.0 博客网站的 URL,例如,http:// <servername>/sites/blog/ 其中 <servername> 是 Web 服务器实际名称的占位符。

然后,通过在 WSS 中设置相应的值,为博客文章设置 类别已发布标题正文 属性的值。消息的 ConfigPropertiesXml 上下文属性。 可通过自定义管道或者在业务流程中实现此操作。 例如,业务流程中的下列表达式将设置 Message_Out 消息的 WSS.ConfigPropertiesXml 上下文属性中的值。

int_Category = 1;  
str_Published = Microsoft.SharePoint.Utilities.SPUtility.CreateISO8601DateTimeFromSystemDateTime(System.DateTime.Now);  
// requires a reference to Microsoft.SharePoint.dll  
str_Title = "This is the title of the post from the WSS adapter";  
str_Body = "This is the body of the post from the WSS adapter";  

Message_Out(WSS.ConfigPropertiesXml) = “<ConfigPropertiesXml>  
<PropertyName1>Category</PropertyName1>  
<PropertySource1>” + int_Category + “</PropertySource1>  
<PropertyName2>Published</PropertyName2>  
<PropertySource2>” + str_Published + “</PropertySource2>  
<PropertyName3>Title</PropertyName3>  
<PropertySource3>” + str_Title + “</PropertySource3>  
<PropertyName4>Body</PropertyName4>  
<PropertySource4>” + str_Body + “</PropertySource4>  
</ConfigPropertiesXml>”;  

此表达式中的各变量将采用以下类型:

变量名称 类型
int_Category System.Int32
str_Published System.String
str_Title System.String
str_Body System.String

以这种方式创建的帖子将设置为 “未批准”状态,这需要博客所有者的批准才能在网站上显示。

可在列表的设置页上查看列表支持的列类型。 有关 Windows SharePoint Services 适配器支持的Windows SharePoint Services列类型的详细信息,请参阅 Windows SharePoint Services 适配器属性参考

从 Windows SharePoint Services 4.0 Wiki 文档库发送和接收

在 Windows SharePoint Services 4.0 网站中,Wiki 网站使用 Wiki 页面文档库。 Wiki Pages 文档库将 Wiki 页面的文本存储在 Wiki 内容 列中,该列使用 多行文本的 UI 类型。 多行文本 UI 类型与 SPFieldType.Note SharePoint 对象模型类型相关联。 有关Windows SharePoint Services适配器支持的Windows SharePoint Services列类型的详细信息,请参阅 Windows SharePoint Services 适配器属性参考

发送到 Windows SharePoint Services 4.0 Wiki 文档库

将消息发送到 Windows SharePoint Services 4.0 Wiki 网站时,Wiki 页面的内容存储在名为 WSS 的 Windows SharePoint Services 适配器上下文属性中。ConfigPropertiesXml。 若要将消息发布到 Windows SharePoint Services 4.0 Wiki 网站,请在配置使用 Windows SharePoint Services 适配器的发送端口时,在适配器传输属性对话框中输入以下值:

属性
目标文件夹 URL 相对于 SharePoint 网站的 Wiki 网站主页的 URL,如“wikiSP”。
SharePoint 站点 URL Windows SharePoint Services 4.0 Wiki 网站的 URL,例如,http:// <servername>/sites/wiki/ 其中 <servername> 是 Web 服务器实际名称的占位符。

然后,通过在 WSS 中设置相应的值,为 Wiki 页面设置 Wiki 内容 属性的值。消息的 ConfigPropertiesXml 上下文属性。 可通过自定义管道或者在业务流程中实现此操作。 例如,业务流程中的下列表达式将设置 Message_Out 消息的 WSS.ConfigPropertiesXml 上下文属性中的值:

str_Wiki = "This is a sample Wiki page entry.";  
Message_Out(WSS.ConfigPropertiesXml) = “<ConfigPropertiesXml>  
<PropertyName1>Wiki Content</PropertyName1>  
<PropertySource1>” + str_Wiki + “</PropertySource1>  
</ConfigPropertiesXml>”;  

此表达式中的 str_Wiki 变量将使用 System.String 数据类型。

重要

Windows SharePoint Services 4.0 Wiki 文档库支持版本控制,但是,BizTalk Server 2010does 的Windows SharePoint Services适配器不支持版本控制。 因此,由 BizTalk Server Windows SharePoint Services 适配器更新的 Wiki 页面将丢失其以前的版本。 由于此限制,Windows SharePoint Services适配器接收的用于BizTalk Server并存档在不同的 Wiki 文档库中的 Wiki 页面将仅保留其最新版本,并删除所有其他版本。

从 Windows SharePoint Services 4.0 Wiki 文档库接收

从 Windows SharePoint Services 4.0 Wiki 网站接收消息时,Wiki 页面的内容存储在名为 WSS 的 Windows SharePoint Services 适配器上下文属性中。InPropertiesXml

若要从 Windows SharePoint Services 4.0 Wiki 页接收消息,请在配置使用 Windows SharePoint Services 适配器的接收位置时,在适配器传输属性对话框中输入以下值:

属性
SharePoint 站点 URL 相对于 SharePoint 网站的 Wiki 网站主页的 URL,如“wiki”。
源文档库 URL 相对于 SharePoint 网站的 Wiki 网站主页的 URL,如“wikiRL”。

然后从 WSS 的 Wiki 内容 节点检索 Wiki 页面内容 。接收的消息的 InPropertiesXml 上下文属性。 可通过自定义管道或者在业务流程中实现此操作。 例如,在以下业务流程表达式中,str_Wiki 变量使用 WSS 中的 Wiki 内容节点的值填充。Message_In消息的 InPropertiesXml 上下文属性。 然后,WSS 的 Wiki Content 属性。Message_Out消息的 ConfigPropertiesXml 上下文属性设置为 str_Wiki 变量的值:

str_PropertiesXml = Message_In(WSS.InPropertiesXml);  
doc = doc.LoadXml(str_PropertiesXml);  
node = doc.SelectSingleNode("InPropertiesXml/Property[@name='Wiki Content']);  
str_Wiki = node.InnerText;  
Message_Out(WSS.ConfigPropertiesXml) = “<ConfigPropertiesXml>  
<PropertyName1>Wiki Content</PropertyName1>  
<PropertySource1>” + str_Wiki + “</PropertySource1>  
</ConfigPropertiesXml>”;  

此表达式中的各变量将采用以下类型:

变量名称 类型
str_PropertiesXml System.Xml.XmlDocument
文档 System.Xml.XmlDocument
节点 System.Xml.XmlNode
str_Wiki System.String

另请参阅

Windows SharePoint Services 适配器