設定 InfoPath Forms Services 的 Web 服務 Proxy (SharePoint Server 2010)

 

適用版本: SharePoint Server 2010

上次修改主題的時間: 2016-11-30

InfoPath Forms Services Web 服務 Proxy 可讓在網頁瀏覽器中執行的 Microsoft InfoPath 表單連線至 Web 服務,方法是使用 Web 服務信任的驗證認證,同時另外將表單使用者的身分識別傳送至 Web 服務以供授權。如此可進行下列兩個案例,這兩個案例無法透過在網頁瀏覽器中執行的 Microsoft InfoPath 表單達成:

  • 若 Windows NTLM 驗證通常會防止重複使用使用者認證,即在第三層驗證 Web 服務。

  • 在 Microsoft InfoPath Filler 2010 中的表單與在網頁瀏覽器中執行的相同表單之間,進行對稱式驗證。

若要從 InfoPath 表單使用 InfoPath Forms Services Web 服務 Proxy,表單設計人員需要完成下列步驟:

  1. 從 Microsoft InfoPath Designer 2010 中建立 Web 服務連線。

  2. 轉換 Web 服務資料連線,以使用資料連線庫中資料連線檔案的設定。

  3. 使用文字或 XML 編輯器新增下列內容,以修改資料連線檔案:

    • 值為 True 的 useFormsServiceProxy 屬性。

    • 參照有效 Secure Store 應用程式識別碼的 Authentication 元素。Secure Store 應用程式必須包含在步驟 1 中建立之連線所使用的 Web 服務信任的認證。

在 InfoPath Filler 2010 或 InfoPath Forms Services 中填寫好表單之後,表單會將 Web 服務呼叫轉遞至 InfoPath Forms Services Web 服務 Proxy,以呼叫目標 Web 服務,並將 Web 服務呼叫的結果傳回表單。InfoPath Forms Services Web 服務 Proxy 會模擬資料連線檔案參照之 Secure Store 應用程式識別碼中指定的信任認證,以驗證 Web 服務;也會將 WS-Security UserNameToken 新增至 Web 服務呼叫的 SOAP 標頭。WS-Security UserNameToken 包含填寫表單之使用者的 Windows 使用者名稱,以及空白的密碼。Web 服務可以使用這個使用者名稱進行驗證。

注意

搭配使用透過 InfoPath Forms Services Web 服務 Proxy 建立的 Web 服務效果最佳。

如需設定 Secure Store Service 的詳細資訊,請參閱<設定 Secure Store Service (SharePoint Server 2010)>。如需資料連線檔案的詳細資訊,請參閱<管理 InfoPath Forms Services 的資料連線檔案 (SharePoint Server 2010)>。如需資料連線檔案內之 useFormsServiceProxy 屬性與 Authentication 元素的詳細資訊,請參閱通用資料連線 2.0 版參照及結構描述(可能為英文網頁) (https://go.microsoft.com/fwlink/?linkid=188138&clcid=0x404)(可能為英文網頁)。

啟用 InfoPath Forms Services Web 服務 Proxy

您可以在 SharePoint 管理中心網站上管理 InfoPath Forms Services Web 服務 Proxy。

預設會為管理員核准的表單啟用 InfoPath Forms Services Web 服務 Proxy,但會為使用者表單停用。您可以針對整個伺服器陣列啟用或停用 InfoPath Forms Services Web 服務 Proxy。

啟用 InfoPath Forms Services Web 服務 Proxy

  1. 確認執行此程序的使用者帳戶為 SharePoint 伺服器陣列管理員群組的成員。

  2. 在管理中心網站的 [快速啟動] 上,按一下 [一般應用程式設定]。

  3. 在 [一般應用程式設定] 頁面上,按一下 [InfoPath Forms Services] 區段中的 [設定 InfoPath Forms Services Web 服務 Proxy]。

  4. 在 [設定 InfoPath Forms Services Web 服務 Proxy] 頁面的 [啟用 InfoPath Forms Services Web 服務 Proxy] 區段中,確定已選取 [啟用] 核取方塊。

  5. 在 [為使用者表單啟用 InfoPath Forms Services Web 服務 Proxy] 區段中,選取 [啟用] 核取方塊。

    注意

    啟用此設定時,使用者表單範本即可使用 InfoPath Forms Services Web 服務 Proxy。即使未啟用此設定,若啟用 Web 服務 Proxy,管理員核准的表單範本仍會使用 Web 服務 Proxy。

  6. 按一下 [確定]。

為使用者表單範本啟用伺服器特定的驗證設定

若要讓使用者表單範本使用 Secure Store Service,必須授權使用者表單範本使用伺服器特定的驗證設定。

為使用者表單範本啟用伺服器特定的驗證設定

  1. 確認執行此程序的使用者帳戶為 SharePoint 伺服器陣列管理員群組的成員。

  2. 在管理中心的 [快速啟動] 上,按一下 [一般應用程式設定]。

  3. 在 [一般應用程式設定] 頁面上,按一下 [InfoPath Forms Services] 區段中的 [設定 InfoPath Forms Services]。

  4. 在 [設定 InfoPath Forms Services] 頁面的 [驗證資料來源 (使用者表單範本)] 區段中,選取 [允許使用者表單範本使用資料連線檔案包含的驗證資訊] 核取方塊。

  5. 按一下 [確定]。