Chapter 7. Installation and configuration 145
The Reconnect tab for SSFS should look similar to Figure 7-12 after inserting
the parameter values found in Table 7-5 on page 144.
Figure 7-12 Runtime tab configuration parameters view of SSFS
7.4.2 Enabling outbound API calls over JMS
For the outbound API call to operate, we need to:
򐂰 Create a service definition for the API.
򐂰 Link the service definition to an action.
򐂰 Link the action to a transaction.
򐂰 Trigger the transaction by an agent service.
Creating the outbound service definitions
Similarly to enabling inbound API calls, for SSFS to notify WebSphere
Commerce of changes to the order status, we must set up custom services.
These services will:
򐂰 Make an API call.
򐂰 Send the results of that call over a JMS queue.
The flow appear as in Figure 7-13.
Figure 7-13 Service definition of an SSFS
After we create the services, they can be added to an action that, in turn, can be
added to a transaction event. When the transaction event is fired, it calls the
action, which calls the service. The service then sends order or shipment details
to WebSphere Commerce.
146 Selling and Fulfillment Solutions Using WebSphere Commerce and IBM Sterling Order
We next create two custom services. The first notifies WebSphere Commerce of
order updates and the second updates WebSphere Commerce of shipment
updates.
Creating the send order details outbound service definition
To create the send order details service, perform the following steps:
1. Launch the Applications Manager.
2. Select Applications Applications Platform from the menu.
3. Double-click Process Modeling.
4. Double-click the Order Fulfillment icon.
5. Click the Service Definitions tab at the bottom of the left pane.
6. Create a new service called EXTN_WC_sendOrderDetials_JMS. Ensure that In a
Synchronous Mode is selected. Ensure that it is added to the WebSphere
Commerce group.
7. Drag the components onto the palette so that it resembles Figure 7-13 on
page 145.
8. Double-click the API node and set the API name parameter to
getOrderDetails (Figure 7-14).
Figure 7-14 API Parameter General pane
Chapter 7. Installation and configuration 147
9. For line extending from the first API node to the generic JMS node, use the
following for the configuration parameters.
a. Set the Runtime tab configuration parameters of SSFS using Table 7-6.
Table 7-6 Runtime tab configuration parameters of SSFS
The Runtime tab SSFS should look similar to Figure 7-15 after inserting
the parameter values found in Table 7-6.
Figure 7-15 Runtime tab configuration parameters view of SSFS
Note: These are sample parameters. Your environment might be different,
so some parameters might have to change. In particular, you will have to
update the provider URL to match the hostname and
BOOTSTRAP_ADDRESS of your WESB server.
If a parameter does not appear in the tables below, it denotes that the field
is left blank.
Parameter Value
Queue Name WCToSSFSMediationModule/SSFSAPIsExport
_RECEIVE_D
Provider URL corbaloc:iiop:your_host_name:2809
Initial Context Factory WebSphere MQ
QCF Lookup WCToSSFMediationModule/SSFSAPIsImport_
QCF
Persistent Selected
Needs Compression Not selected
Commit of this message
depends on parent
transaction
Selected
Enable JMS Security Not selected
148 Selling and Fulfillment Solutions Using WebSphere Commerce and IBM Sterling Order
b. Set the Header tab configuration parameters using Table 7-7.
Table 7-7 Header tab configuration parameters
The Header tab SSFS should look similar to Figure 7-16 after inserting the
parameter values found in Table 7-7.
Figure 7-16 Header tab configuration parameters view of SSFS
c. Set the Reconnect tab configuration parameters for SSFS using Table 7-8.
Table 7-8 Reconnect tab configuration parameters of SSFS
The Reconnect tab SSFS should look similar to Figure 7-17 after inserting the
parameter values found in Table 7-8.
Figure 7-17 Reconnect tab configuration parameters view of SSFS
Creating the send order details outbound service definition
To create the send order details service, perform the following steps:
1. Launch the Applications Manager.
2. Select Applications Applications Platform from the menu.
3. Double-click Process Modeling.
Parameter Value
TargetFunctionName sendOrderDetails
Parameter Value
Retry Interval (ms) 0
Number of Retries 0
Use Backup JMS Not selected

Get Selling and Fulfillment Solutions Using WebSphere Commerce and IBM Sterling Order Management now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.