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 | "Lists/Posts" など、SharePoint サイトを基準とした [投稿] リストのターゲット フォルダーの URL。 |
SharePoint サイトの URL | Windows SharePoint Services 4.0 ブログ サイトの URL (例: http:// <servername>/sites/blog/ (<servername> は Web サーバーの実際の名前のプレースホルダー) です。 |
次に、WSS で対応する値を設定して、ブログ投稿の Category、 Published、 Title、 Body の各プロパティの値を設定します。メッセージの ConfigPropertiesXml コンテキスト プロパティ。 これは、カスタム パイプラインまたはオーケストレーションで実行できます。 たとえば、オーケストレーションの次の式では、WSS の値が設定されます。Message_Out メッセージの 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>”;
この式の変数は、次のデータ型を使用します。
変数名 | Type |
---|---|
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 Pages ドキュメント ライブラリが使用されます。 Wiki ページ ドキュメント ライブラリは、複数行のテキストの UI タイプを使用する Wiki コンテンツ 列に Wiki ページ のテキストを格納します。 複数行のテキスト 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 | "wikiSP" など、SharePoint サイトを基準とした Wiki サイトのホーム ページの URL。 |
SharePoint サイトの URL | Windows SharePoint Services 4.0 Wiki サイトの URL (たとえば、http:// <servername>/sites/wiki/ )<、servername> は Web サーバーの実際の名前のプレースホルダーです。 |
次に、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 2010 用の Windows SharePoint Services アダプターはこの機能をサポートしていません。 そのため、BizTalk Server用のWindows SharePoint Services アダプターによって更新された Wiki ページは、以前のバージョンを失います。 この制限により、BizTalk Server用のWindows SharePoint Services アダプターによって受信され、別の 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 | "wiki" など、SharePoint サイトを基準とした Wiki サイトのホーム ページの URL。 |
基になるドキュメント ライブラリの URL | "wikiRL" など、SharePoint サイトを基準とした Wiki サイトのホーム ページの 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>”;
この式の変数は、次のデータ型を使用します。
変数名 | Type |
---|---|
str_PropertiesXml | System.Xml.XmlDocument |
ドキュメント | System.Xml.XmlDocument |
node | System.Xml.XmlNode |
str_Wiki | System.String |