Versions Compared

Key

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

...

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>

Example

If you want the ESB to receive messages of the image/png content type, add the following configurations to the <ESB_HOME>/repository/conf/axis2/axis2.xml file.

In the Message Builders section:

Code Block
languagexml
<messageBuilder contentType="image/png" 
                        class="org.wso2.carbon.relay.BinaryRelayBuilder"/>


In the Message Formatters section:

Code Block
languagexml
<messageFormatter contentType="image/png" 
                        class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
Excerpt
hiddentrue

Description of the Message Relay Configuration in WSO2 ESB.