Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the axis2.xml file, there are two configuration sections called messageBuilders and messageFormatters. The user can replace the expected content types with the Message Relay Message builder and formatter to pass these messages through the ESB without building them.

...

Sample Configuration for Message Builder
Code Block

<messageBuilders>
        <messageBuilder contentType="application/xml"
                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
        <messageBuilder contentType="application/x-www-form-urlencoded"
                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
        <messageBuilder contentType="multipart/form-data"
                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
        <messageBuilder contentType="text/plain"
                         class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
        <messageBuilder contentType="text/xml"
                         class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
    </messageBuilders>
Sample Configuration for Message Formatter
Code Block

<messageFormatters>
        <messageFormatter contentType="application/x-www-form-urlencoded"
                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
        <messageFormatter contentType="multipart/form-data"
                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
        <messageFormatter contentType="application/xml"
                          class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
        <messageFormatter contentType="text/xml"
                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
        <!--<messageFormatter contentType="text/plain"
                         class="org.apache.axis2.format.PlainTextBuilder"/>-->
        <messageFormatter contentType="application/soap+xml"
                         class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
    </messageFormatters>
Excerpt
hiddentrue

Description of the Message Relay Configuration in WSO2 ESB.