Run the SPE Pack for Supply Chain EDI deenvelope and
envelope samples as described here.
Before you begin
- Before you run the samples, make certain that the packs have been deployed. To deploy the packs
see the "Installing, Configuring and Deploying" documentation. If the packs have already been
deployed, continue with these procedures.
- Do not run the samples from the same SPE console session that was used to deploy the pack.
Instead, open a new console session after you deploy the pack, and then run the samples from the new
window. This causes the environment settings used to run the sample to include the recently deployed
pack files.
About this task
Follow these procedures to set up and run the EDI samples.
Procedure
-
Open an SPE Console/Session window.
-
Set up the samples. At the command prompt, enter
spesetupsamples-packedi, and press Enter to run the
set up.
-
Run the samples. When set up completes, type: sperunsamples-packedi and
press Enter, to run the set up.
-
You are prompted to enter a standard. Type tradacoms,
edifact, or x12 and then press
Enter to run the sample.
Note: You can also provide the standard as an argument to the command (see usage:
sperunsamples-packedi /?)
Note: If you want to output the results to a file, use the command: sperunsamples-packedi
standard
>
file name where standard indicates x12,
edifact or tradacoms and file name
is the file name of your choice.
-
Review the results in the SPE Console window, or in a file. The output shows the response
information that was returned by SPE. This includes the status, as well as the output documents,
process data, correlations, and other information. The output also tells which files were used to
write the contents of the returned documents.
-
EDIFACT sample results appear as shown here:
For the deenvelope test using good data, the following is displayed:
[SPESample] : DEENVELOPE Response status=0 (SUCCESS)
For the deenvelope test using bad data, the following is displayed:
[SPESample] : DEENVELOPE Response status=1 (ERROR)
For the envelope test using good data, the following is displayed:
[SPESample] : ENVELOPE Response status=0 (Success)
-
X12 sample results appear as shown here:
For the deenvelope test using good data, the following is displayed:
[SPESample] : DEENVELOPE Response status=0 (SUCCESS)
For the deenvelope test using bad data, the following is displayed:
[SPESample] : DEENVELOPE Response status=1 (ERROR)
For the envelope test using good data, the following is displayed:
[SPESample] : ENVELOPE Response status=0 (Success)
-
TRADACOMS sample results appear as shown here:
For the deenvelope test, the following is displayed: [SPESample] :
DEENVELOPE Response status = 0 (SUCCESS)
For the envelope tests, the following is displayed: [SPESample] : ENVELOPE
Response status = 0 (SUCCESS)