Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Some legacy back ends might not support chunked messages. Message chunking is set using the headerĀ Transfer-Encoding: chunked. To disable sending chunked messages to the backend for a specific API, follow the steps below:

  1. Create a xml file with the following content:

    disable chunking
    <?xml version="1.0" encoding="UTF-8"?>
    <sequence xmlns="http://ws.apache.org/ns/synapse" name="disableChunkingSeq">
       <property name="DISABLE_CHUNKING" value="true" scope="axis2"/>
    </sequence>
  2. Use the same sequence and apply it as a mediation extension for this particular API, to the inflow. See per-API mediation extension creation documenatation. Once the API is published, the chunking will be disabled for the message that is sent to the backend.

    Its possible to apply the same mediation extenstion to the out sequence as well to stop chunked messages being sent to the client.

  • No labels