IBM Integration Bus, Version 9.0.0.8 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Writing code for a .NETInput node

Create code for message flows containing a .NETInput node by double-clicking the node to start Microsoft Visual Studio.

Tip: If the IBM® Integration Toolkit is installed after Microsoft Visual Studio, the broker Project templates will be automatically installed ready for you to use. However, if the IBM Integration Toolkit is installed first, you must manually install the Microsoft Visual Studio templates. This installation can be achieved by running the file IBM.Broker.DotNet.vsix and stepping through the wizard, accepting the license file as part of the process. If the default installation location was used for IBM Integration Toolkit, the file can be found at the location C:\Program Files (x86)\IBM\IntegrationToolkit90\wmbt.

You write and compile your code in Microsoft Visual Studio. The following IBM Integration Bus templates are provided for C#, Visual F#, and Visual Basic:
  1. Double-click the .NETInput node. Alternatively, right-click the node and select Open Microsoft Visual Studio. If there is a Microsoft Visual Studio project or solution name on the Visual Studio panel, the project or solution automatically loads when Microsoft Visual Studio opens.
  2. In Microsoft Visual Studio, select New Project. You can then select an IBM Integration project from beneath the language of your choice; C#, F# and Visual Basic.
  3. Select a project from the list. For the .NETInput node, you can choose:
    • Create a polling-based IBM Integration input node
    • Create an event-driven IBM Integration input node
    The project then generates skeleton code that matches the selected type. This skeleton code then displays in the corresponding .NET language editor, for example; C#.
  4. Expand the UserCode region, and write your code. Content assist is available in this region. Press Ctrl+Space to invoke it.
  5. Optional: Use the methods available for your .NETInput node. See Methods for a .NETInput node.
  6. Save the class and build the solution, making a note of the path to the assembled file.
Next:

bc34231_.htm | Last updated Friday, 21 July 2017