Integration Platform Technologies: Siebel Enterprise Application Integration > Web Services > About EAI File Streaming >

About Outbound EAI Streaming Responses


Figure 32 provides an overview of the components and process flow used for streaming an outbound response.

Figure 32. Request-Response Cycle(s) for an Outbound Streaming Response

Figure 32 illustrates the following process:

  1. An EAI request from the HTTP client is received by the SWSE Plug-in.
  2. The SWSE Plug-in forwards the request to the SWE Server.
  3. The SWE Server then performs one of the following actions:
    1. If the request is not a streaming request, the SWE Server calls the EAI Object Manager method.
    2. If the request is a streaming request, then the file is first written to disk before the SWE Server calls the EAI Object Manager method.
  4. The EAI Object Manager forwards the response to the SWE Server, and SWE queries the output arguments.
  5. If a file reference is found, then the SWE Server transmits the file to the client.

    Whether multiple chunks will be sent or not depends upon the size of the file. If chunking is needed, then the SWE Server sends the first chunk to the plug-in, also embedding the streaming information in the response.

  6. The Plug-in sends the chunk to the client including the HTTP headers in the response, and then it requeries the SWE Server to get the next chunk.

    NOTE:  The plug-in sends the HTTP response headers only for the first chunk.

The cycle continues until the entire file has been transmitted to the HTTP client.

Integration Platform Technologies: Siebel Enterprise Application Integration Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.