770 WebSphere Business Integration Adapters
Figure 31-11 shows the successful AS2 transaction.
Figure 31-11 AS2 viewer
Chapter 31. Integrating and automating the process 771
Figure 31-12 shows the actual document including the AS2 and HTTP headers.
Figure 31-12 Raw document viewer
31.1.3 Adding the send service to the process model
Now that you have validated the WBICSend service, you can add it to the
process model by following these steps:
1. Copy the WSDL files for the WBICSend service to the
maintenance.processes package.
2. Open the process MaintenanceProcess in the BPEL editor.
3. Drag the WSDL WBICSendService.wsdl to the canvas.
4. Add a new invoke activity to the process and call it InvokeWBICSend.
772 WebSphere Business Integration Adapters
5. On the Implementation tab, select the correct partner link.
6. Set the input variable to the new variable WBICSendRequestVariable
Figure 31-13 WBICSend service added to the process
7. Add a new Assign activity between the InvokeWBICSend and the Reply
activities.
8. In the From section, select Fixed Value and type some informative text in the
edit field.
9. In the To section, select Variable or Part. Select the contents of the process
output variable.
10.Connect the invoke activity to the Assign activity and the Assign activity to the
Reply node.
Chapter 31. Integrating and automating the process 773
Figure 31-14 Assign activity added
11.You need a transform activity to prepare the variable that is used in the
activity InvokeWBICSend. Call this new transformer PrepareWBICSend.
12.Add an extra connection from the InvokeAdapter_Progress to the
PrepareWBICSend activity.
Note: When the document has been sent to WebSphere Business Integration
Connect, we finish the process. When RedContract responds via WebSphere
Business Integration Connect, we trigger a new process (developed in 31.3,
“Building the receive process” on page 821) which invokes the adapter to
indicate completion of the maintenance request.
774 WebSphere Business Integration Adapters
13.Set the input variable to ContractorRequestVariable and the output variable to
WBICSendRequestVariable. Click New to create the transformation.
Figure 31-15 Add the transform activity PrepareWBICSend
14.Provide appropriate names for the link, service, port, and operation. Click OK.
Note: We will soon add conditions to the two links leaving
InvokeAdapter_Progress.

Get WebSphere Business Integration Adapters: An Adapter Development and WebSphere Business Integration Solution 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.