如何搭配 BizTalk Adapter for Host Applications 使用用戶端內容
針對主機整合伺服器,用戶端內容是一組值,可覆寫遠端主機的組態值。 這些關鍵字可以搭配 BizTalk 主應用程式配接器 y 使用,方法是修改與 BizTalk 專案相關聯的 XML 檔案中的 ClientCoNtext 關鍵字,或透過 Orchestration 或自訂管線。 下列覆寫支援 (USERID、PASSWORD、RecvTimeOut、SendTimeOut、PortOverride、IPAddress、TPNameOverride、ProgNameOverride、IMS_LTERM、LIbNameOverride、OverrideSourceTP 和 REOverride) 。 不過,基於安全性,只允許使用 XML 檔 (USERID、PASSWORD、RecvTimeOut、SendTimeOut、PortOverride 和 REOverride) 傳入下列專案。
傳遞用戶端內容關鍵字作為 XML 檔的一部分
從 HIS Designer所產生的 XSD 產生 XML 檔的實例,以描述您的元件。
如需詳細資訊,請參閱 如何建立交易整合器專案和介面定義
在 XML 檔中,編輯 TIClientCoNtext 關鍵字。
TIClientCoNtext關鍵字會以下列格式出現在 XML 檔中:
<ns0:TIClientContext TIContextKeyword="TIContextKeyword_0" TIContextValue="TIContextValue_1" />
其中 「TICoNtextKeyword_0」 和 TICoNtextValue_1「 分別代表關鍵字和值組。
對於主應用程式的 BizTalkAdapter,TIClientCoNtext 會接受 USERID、PASSWORD、RecvTimeOut 和 SendTimeOut 作為有效的關鍵字。
請注意,如果您未使用ClientCoNtext,或呼叫將無法在不正確用戶端關鍵字中傳送,則必須從檔中移除或批註自動產生的TIClientCoNtext元素。
完成後,儲存 XML 檔案並結束。
範例
下列範例描述使用 HIS Designer所產生的 XSD,在 BizTalk 專案中產生的 XML 檔。
<ns0:DPC_WGB__GetBalance__WGBANK__Request xmlns:ns0="http://microsoft.com/HostApplications/TI/WIP">
<ns0:WGBANKInDocument>
<ns0:ACCNUM>1234</ns0:ACCNUM>
<ns0:name>Kim Akers</ns0:name>
</ns0:WGBANKInDocument>
<ns0:TIClientContext TIContextKeyword=" RecvTimeOut " TIContextValue="15" />
<ns0:TIClientContext TIContextKeyword="TIContextKeyword_0"TIContextValue="TIContextValue_1" />
</ns0:DPC_WGB__GetBalance__WGBANK__Request>