SWIFT Module 7.1 SP10.July 2020 | Configuring SWIFT Module for FileAct and InterAct Message Exchange over SAG | Configuration Steps for InterAct and FileAct Messaging Services over SAG RAHA | Step 1: Prepare the Server to Handle Requests | Task 3: Configuring Trading Networks Information
 
Task 3: Configuring Trading Networks Information
*To configure Trading Networks information
SWIFT Module integrates with Trading Networks to process incoming requests. Therefore, you must define certain properties within Trading Networks.
1. Define Trading Partner Profiles. In Trading Networks, define trading partner profiles for yourself and for the all financial institutions with whom you want to exchange messages and files. For more information about defining trading partner profiles for use with SWIFT Module, see About Trading Partner Profiles.
2. Define TN Document Types. TN document types are definitions that tell Trading Networks how to identify the incoming SNL request primitives and which processing rules to apply when processing the document. You must create a TN document type for each type of request that you handle.
When SWIFT Module receives a request, it invokes a Trading Networks service to recognize the incoming requests (SWIFTNet primitives) for server applications. Trading Networks matches the incoming request to one of the TN document types that you created and extracts the information indicated by the attributes specified in the TN document type.
When you define a TN document type, specify which root tag in the SNL primitive that the TN document type must match.
To create an internal TN document type do the following:
a. Follow the instructions for creating document types in Trading Networks as described in webMethods Trading Networks Administrator’s Guide.
b. Select XML.
c. In the Name field on the Document Type Details screen, type the name you want to assign to the internal TN document type.
d. In the Description field, type a description for the internal TN document type.
e. On the Identify tab, in the Root Tag field, type the value of the root tag of your internal document, for example, HandleFileRequest.
Note:
You can modify one of the sample TN document types included in the SWIFT Module samples. For information about using samples, see webMethods SWIFT Module Samples Guide.
3. Create Mapping Services. A mapping service defines the response to return to the client. You must create a mapping service for each type of request you handle. SWIFT Module provides sample services in the SWIFT Module samples that you can use as is or as a model for creating new services. For information about SWIFT Module sample services, see webMethods SWIFT Module Samples Guide.
4. Define Processing Rules. Processing rules enable you to process incoming requests (SNL primitives) for SWIFTNet server applications by invoking the mapping services that you create. Assign a processing rule to the TN document type to specify how Trading Networks processes requests, including invoking specified processing services. You must create a processing rule for each type of request you handle. To create a processing rule do the following:
a. Follow the instructions for creating processing rules in Trading Networks as described in webMethods Trading Networks Administrator’s Guide.
b. In the Name field on the Processing Rule Details screen, type a name for the processing rule.
c. In the Description field, type a description for the processing rule.
d. On the Criteria tab, select the TN document type associated with the processing rule.
e. While adding a new action to the processing rule, select the Execute a Service check box and specify the service that you want this processing rule to execute.
To function properly, this service must meet the following requirements:
*The input/output signature must conform to the specification wm.swiftnet.server.doc:SWIFTNetServerSideProcessingRule in the WmSWIFTNetServer package.
*The output must contain a string xmlResponse. This is the response to the incoming request that the application server returns to the client.
Using Designer, verify that your processing rule complies with this criteria:
On the Input/Output tab of the mapping service, in the Specification Reference field, specify the SWIFTNetServerSideProcessingRule document.
f. Follow the instructions to complete the creation of a processing rule as described in webMethods Trading Networks Administrator’s Guide.
You can use or modify one of the sample server processing rules included in the SWIFT Module samples. For information about samples, see webMethods SWIFT Module Samples Guide. You can also create your own processing rules.
5. After completing the previous three configuration tasks, your server application is ready to receive requests and send responses.