共用方式為


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 網站,以及從 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配接器無法在根資料夾以外的清單資料夾中建立清單專案。

  • 下列各節將詳細說明如何使用Windows SharePoint Services配接器,BizTalk Server將訊息傳送至 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 網站之 Posts 清單 (例如 "Lists/Posts") 的目的資料夾 URL。
SharePoint 網站 URL Windows SharePoint Services 4.0 部落格網站的 URL,例如 HTTP:// < servername/sites/blog/其中 servername >> 是網頁伺服器實際名稱的預留位置。 <

然後在 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 文件庫接收訊息

在 Windows SharePoint Services 4.0 網站中,Wiki 網站會使用Wiki Pages文件庫。 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 網站 (例如 "wikiSP") 首頁 URL。
SharePoint 網站 URL Windows SharePoint Services 4.0 Wiki 網站的 URL,例如 HTTP:// < servername/sites/wiki/其中 servername >> 是網頁伺服器實際名稱的預留位置。 <

然後在 WSS 中設定對應的值,以設定 Wiki 頁面的 Wiki Content 屬性值。訊息的 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 配接器不支援版本設定。 因此,Windows SharePoint Services配接器針對 BizTalk Server 更新的 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 網站 (例如 "wiki") 首頁 URL。
來源文件庫 URL 相對於 SharePoint 網站的 Wiki 網站 (例如 "wikiRL") 首頁 URL。

然後,從 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
doc System.Xml.XmlDocument
節點 System.Xml.XmlNode
str_Wiki System.String

另請參閱

Windows SharePoint Services 配接器