You can use inbound adapter services and outbound adapter services to work with messages in a segment.
Message segmentation enables you to configure an adapter service that can accommodate a very large file. You can also segment messages by splitting and routing them to different destinations. For detailed instructions on how to retrieve inbound messages in a segment and how to segment outbound messages, see
Working with Messages in a Segment.