动态适配器 DisplayUI 方法

IDynamicAdapterConfig 接口上的此方法显示自定义适配器的自定义用户界面。 这使用户能够查看、选择基于所选服务的相关支持文件并将它们导入其 BizTalk 项目中。

在文件适配器中,修改 AdapterManagement.cs 文件的 displayUI 方法中的代码,以创建自定义用户界面, (UI) 选择要接受的架构类型。 选择架构后,选择适当的 WSDL 文件。

以下代码来自 AdapterManagement.cs 文件的 displayUI 方法。

/// <summary>  
        /// Acquire wsdl(s) from which to build the user interface  
        /// </summary>  
        /// <param name="endPointConfiguration"></param>  
        /// <param name="owner"></param>  
        /// <param name="WSDLList">Array of custom UI's WSDL (returned)</param>  
        /// <returns></returns>  
        public Result DisplayUI(IPropertyBag endPointConfiguration,   
            IWin32Window owner,  
            out string [] WSDLList)   
      {  
            WSDLList = new string[1];  
            WSDLList[0] = GetResource("AdapterManagement.service1.wsdl");  
            return Result.Continue;  
        }