Create an outbound service
The outbound service outputs a file that has been processed
to the file system.
About this task
To create the outbound service using the adapter pattern wizard, follow these steps:
Procedure
Results
The following artifacts are created.
| Artifact | Name | Description |
|---|---|---|
| Import | SeparateCustomerOut | The import lets your service use the WebSphere Adapter for Flat Files to output files. |
| Business objects | CreateResponse, UnstructuredContent | CreateResponse, which will be used in creating the output of the application, uses the Customer business object as its input. The UnstructuredContent business object can be used for generic input types. |
| Business objects for fault handling | DuplicateRecordFault, MissingDataFault, PrimaryKeyPairType, RecordNotFoundFault, WBIFault | These business objects can be used to handle exceptions. When a business exception is thrown, the adapter throws a fault exception and passes the fault information to the calling component. If you want to use this information, you will need to create a fault selector configuration file. |
| Interface | SeparateCustomerOut | This interface contains the operation that can be invoked. |
| Operation | create | This operation creates the files in the output directory. |
For our particular application, we will only be using a one-way inbound request and do not require fault handling. In the following steps, we will remove the faults from the import binding and the interface.
To remove the faults from the import binding,
follow these steps:
- Select SeparateCustomerOut in the assembly editor and then select the Faults Configuration tab in the Properties view.
- Select Default Fault Configuration. In the panel to the right, click Clear.
- Expand Default Fault Configuration and the create operation beneath it. Select MISSING_DATA. In the panel to the right, click Clear.
- Repeat the previous step for DUPLICATE_RECORD and RECORD_NOT_FOUND.
- Save your changes. From the menu, select File > Save. Close the assembly editor.
To remove the faults from the interface, follow these
steps:
- Expand Interfaces in the Business Integration view. Double-click SeparateCustomerOut to open the interface editor.
- Click MISSING_DATA fault. Then select the Delete icon. It is on the top of the editor on the right.
- Similarly, delete DUPLICATE_RECORD and RECORD_NOT_FOUND faults.
- Save your changes. From the menu, select File > Save.Close the interface editor.




This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15