198 Implementing WebSphere BI Express for Item Synchronization
10.1 Install iSoft for supplier
First we need to install the P2P Agent.
1. Create an iSoft directory on your machine (we used c:\iSoft_Express).
2. Locate the WinExp ZIP file
3. Extract the ZIP file to the iSoft_Express directory.
10.1.1 Run Buildcfg5
For the unit testing of our AS2 connectivity we will install another instance of iSoft
and send data to ‘ourselves’. We will configure our supplier instance first.Mak
We now need to run the configuration tool (buildcfg5) to set up our base
configuration.
1. Open a command window and change to the directory C:\iSoft_Express
2. Type buildcfg5 to start the configuration tool.
Example 10-1 Buildcfg5
C:\iSoft_Express>buildcfg5
Installing in - C:\iSoft_Express
****************************************************************************
You need to specify the platform that the p2pAgent will run on.
My platform type is (1) Windows based
(2) UNIX or LINUX based
****************************************************************************
Enter your platform type ( 1 or 2 ) >> 1
****************************************************************************
Your AS2 name is a case sensitive alphanumeric string with no spaces allowed.
AS2 Names that will be used for Wal-mart are limited to 32 Characters.
****************************************************************************
Enter your AS2 name >> ITSO
****************************************************************************
The external address is the Internet address used by your trading partners
to send messages to you. Firewalls can affect the address that is required.
Make sure that you fully understand how your firewall is configured.
My external address type is (1) IP address
(2) A DNS resolveable URL
****************************************************************************
Enter your External Address Type ( 1 or 2 ) >> 1
Enter your external address URL >> 127.0.0.1
****************************************************************************
The internal address is the actual address of the machine running the p2pAge
My internal address type is (1) IP address
(2) A DNS resolveable URL
Chapter 10. Configure the AS2 connection 199
****************************************************************************
Enter your Internal Address Type ( 1 or 2 ) >> 1
Enter your internal port number (ie 4080) >> 4080
Enter your internal address URL >> 127.0.0.1
****************************************************************************
The notification address is the IP address that will receive notifications.
My notification address type is (1) IP address
(2) A DNS resolveable URL
(3) Email address
****************************************************************************
Enter your Notification Address Type ( 1 or 2 or 3) >> 1
Enter your notification address URL >> 127.0.0.1
****************************************************************************
Identify the certificate that will be used for iSoft Testing.
Enter the first part of the file name that contains your Public\Private keys.
This name cannot contain any spaces and should describe the trading pair rela
Example: YourName-iSoft ( You to ISOFT trading relationship )
****************************************************************************
Enter the certificate name for use with iSoft Testing >> ITSO-UCCNET
****************************************************************************
Identify the certificate that will be used for Wal-Mart.
Enter the first part of the file name that contains your Public\Private keys.
This name cannot contain any spaces and should describe the trading pair rela
Example: YourName-Walmart ( You to Walmart trading relationship )
****************************************************************************
Enter the certificate name for use with Walmart >> ITSO-UCCNET
****************************************************************************
The following questions provide additional data contained in the certificate.
****************************************************************************
Enter your two letter State Code >> NC
Enter your City (Spaces not allowed) >> Raleigh
Enter your Organization (Spaces not allowed) >> ITSO
3. We use 1 as the address type and the localhost IP address.
4. Use ITSO-UCCNET for our certificate names (we will generate these later).
10.1.2 p2pagent.cfg
Now that we have some basic values in our configuration files, it becomes much
clearer what the purpose of each piece of configuration is used for. Before
moving on and completing the configuration, take a minute to look over the
current configuration files as they are.To complete the configuration tasks.
1. Open the p2pagent.cfg file
2. Edit the configuration file so that it looks as follows:
200 Implementing WebSphere BI Express for Item Synchronization
Example 10-2 ITSO to UCCnet config
<xml>
# configuration settings
<command>set -eperror -ef</command>
<command>set -lplog -lf</command>
<command>set -npnotice -nf-</command>
<command>set -opworkorder -oswo</command>
<command>set -pppki</command>
<command>set -rpreceipt</command>
<command>set -tr300s</command>
<command>set -m6</command>
<command>set -bhmq://SUPPLIER</command>
#
# UCCNET
<command>addpair ITSO UCCNET http://127.0.0.1:5080/ http://127.0.0.1:4080/
ITSO mq://SUPPLIER/OUTBOX</command>
<command>addpair UCCNET ITSO http://127.0.0.1:4080/ * UCCNET
mq://SUPPLIER/MQCONN.IN</command>
#
# UCCNET certificates and keys
<command>importkey ITSO UCCNET E -fCpki\ITSO-UCCNET.cer
-fKpki\ITSO-UCCNET.prv</command>
<command>importkey ITSO UCCNET J -fCpki\UCCNET-ITSO.cer</command>
<command>importkey UCCNET ITSO E -fCpki\ITSO-UCCNET.cer
-fKpki\ITSO-UCCNET.prv</command>
<command>importkey UCCNET ITSO J -fCpki\UCCNET-ITSO.cer</command>
#
# start services
<command>start http://127.0.0.1:4080/</command>
#
</xml>
3. Delete the stanzas for iSoft Testing and iSoft certificates and keys.
4. For our test, we will send to a partner named UCCNET. (This is not the real
UCCnet AS2 name, but it will make life easier when changing the
configuration files for an actual test run to UCCnet.) Change the words
Wal-Mart to UCCNET.
5. Change:
ITSO inbox\08925485US00
to
ITSO mq://SUPPLIER/OUTBOX

Get Implementing WebSphere Business Integration Express for Item Synchronization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.