This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

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

« Previous Version 2 Next »

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 builder and formatter to pass these messages through the ESB without building them.

Message Relay Builder and Formatter Class Names

Builder

org.wso2.carbon.relay.BinaryRelayBuilder

Formatter

org.wso2.carbon.relay.ExpandingMessageFormatter

Sample Configuration for Message Builder
<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
<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>
  • No labels