This update is included in Cumulative Update 2 for Host Integration Server 2016.
The following are the kinds of Host Integration Projects that can be created in Visual Studio:
- BizTalk pipeline conversion
- Host applications
- Host files
- Message queueing
After this update rollup is installed, you can create .hidx files for each of these project types through PowerShell. We recommend that you have some experience building .hidx files through Visual Studio Designer before you try to use PowerShell to create the files.
To use PowerShell, open the 32-bit Windows PowerShell ISE (x86), and then select Show Command Add-on on the View menu. On the Commands tab, select the Microsoft.HostIntegration.Importer.PowerShell module to display the list of PowerShell commands that are available.
Example
To perform the following tasks manually, follow these steps:
- Create a WIP hidx object.
- Add a method that is named GetAccounts.
- Add an input 30-character-string parameter that is named CustomerName.
- Add an input 6-character string parameter that is named AccountNum.
- Add an output decimal parameter that is named Balance that is PIC S9(7)V99.
- Save the WIP hidx object as a file. The hidx file is saved at C:\Lab. Be aware that the folder must exist to be able to create the $WIPhidx object.
To automate these tasks, run the following script in PowerShell:
$WIPhidx = New-HisWipHidxFile -ElmUserData -Name MyNamespace -Interface IMyInterface -
Description "My Description" -File C:\Lab\WIPSample.hidx
$WIPMethod = Add-HisHidxElement -InputObject $WIPhidx -Method -Name GetAccounts
$NameParameter = $WIPMethod | Add-HisHidxParameter -Name CustomerName -Atomic
$NameParameter.Direction = "In"
$NameParameter.DataType = "String"
$NameParameter.ConversionInformation.Size = 30
$AccountParameter = $WIPMethod | Add-HisHidxParameter -Name AccountNum -Atomic
$AccountParameter.Direction = "In"
$AccountParameter.DataType = "String"
$AccountParameter.ConversionInformation.Size = 6
$BalanceParameter = $WIPMethod | Add-HisHidxParameter -Name Balance -Atomic
$BalanceParameter.Direction = "Out"
$BalanceParameter.DataType = "Decimal"
$BalanceParameter.ConversionInformation.HostDataType = "PIC S9(n)V9(n) COMP-3"
$BalanceParameter.ConversionInformation.Precision = 7
$BalanceParameter.ConversionInformation.Scale = 2
$WIPhidx.Save()
Note Additional example PowerShell scripts are available on GitHub.