Send an InterAct Message Using the Input Channel

About this task

Once the input channel is open, you can use the SWIFTNet Client Profile to send messages using the input channel.

Note: You can only use the input channel to send InterAct messages in store-and-forward mode.

To send an InterAct message using the input channel:

Procedure

  1. Configure the SWIFTNet Client Profile (please refer to Configuring the Sterling B2B Integrator Components to Use the Input Channel) to use the input channel. You must also be sure that the interface used is InterAct and store-and-forward mode.

    Alternatively, you can pass the necessary parameter through the BPML. The following is a sample business process that you can use to send messages using the input channel:

    
    <process name="SWIFTNet-IA-Sync-SnF-InputChannel">
      <sequence name="SWIFTNetClientService">
        <operation name="set user token">
          <participant name="SetUserToken"/>
          <output message="SetUserTokenMessage">
            <assign to="USER_TOKEN">admin</assign>
            <assign to="." from="*"></assign>
          </output>
          <input message="inmsg">
            <assign to="." from="*"></assign>
          </input>
        </operation>
    
        <operation>
          <participant name="SWIFTNetClientService"/>
          <output message="handleClientRequest">
            <assign to="." from="*"></assign>
            <assign to="interfaceMode">interact</assign>
            <assign to="swiftOp">sync</assign>
            <assign to="requestorDN">o=test,o=swift</assign>
            <assign to="responderDN">o=test,o=swift</assign>
            <assign to="serviceName">swift.generic.iast!x</assign>
            <assign to="SnF">TRUE</assign>
            <assign to="nonRepudiation">FALSE</assign>
            <assign to="deliveryNotification">TRUE</assign>
            <assign to="useInputChannel">TRUE</assign>
            <assign to="serverAdapterName">SWIFTNetServerAdapter</assign>
          </output>
          <input message="testing">
            <assign to="." from="*"></assign>
          </input>
        </operation>
    
      </sequence>
    </process>
    

    The parameters used in the BPML are very similar to the parameters used to send messages in InterAct store-and-forward mode without using the input channel.

    However, you need to assign a new parameter, useInputChannel, to TRUE if you want to use the input channel. You also can supply the serverAdapterName parameter (the parameter is optional and the default value is SWIFTNetServerAdapter). The serverAdapterName indicates from which instance of the SWIFTNet Server Adapter or SWIFTNet7 Adapter the input channel configuration should be taken. If you are using the default SWIFTNet Server Adapter or SWIFTNet7 Adapter, you do not need to specify this parameter.

  2. Configure the SWIFTNet Server Adapter (please refer to Configuring the Sterling B2B Integrator Components to Use the Input Channel) to use the input channel.
  3. Enable the SWIFTNet Server Adapter and monitor the Current Process page to verify that the input channel is successfully opened.
  4. Execute the sample business process above (with the appropriate payload) to send the message using the input channel.

Results

If an error occurs, the resend scheduler automatically resends the message. If the retry count has exceeded the maximum retry attempts setting in the SWIFTNet Server adapter, the resend scheduler automatically sends a Resolve Gap request to notify SWIFT to skip this sequence number and proceed with the subsequent number.