- WSO2 Developer’s Guide
- Fidel Prieto Estrada Ramón Garrido Lázaro
- 175字
- 2021-07-08 10:05:54
Configuring message formatters and message builders
Message formatters and Message builders are the components that allow us to send and receive different types of messages according to the content type specified in the request. It is important to enable the content type used in the messages exchanged because if the content type received is not configured in the system, the message will not be understood.
Message builders are used to process incoming messages, and Message formatters are used to build the outgoing messages.
We can enable the Message formatters and builders in the file located in <EI_HOME>/conf/axis2/axis2.xml. Message formatters are under the same name in XML tag, and so are Message builders. Most values that messages content type can be received are already configured, but they are commented. We just have to find the one we need and uncomment it for Message formatters and/or message builders, depending on the case.
For example, to enable us to send and receive JSON messages, we have to enable that content type for input and output messages in axis2.xml:
<messageFormattercontentType="application/json" class="org.wso2.carbon.integrator.core.json.JsonStreamFormatter"/>
<messageBuildercontentType="application/json" class="org.wso2.carbon.integrator.core.json.JsonStreamBuilder"/>
- jQuery Mobile Web Development Essentials(Third Edition)
- TensorFlow Lite移動端深度學(xué)習(xí)
- 算法零基礎(chǔ)一本通(Python版)
- 無代碼編程:用云表搭建企業(yè)數(shù)字化管理平臺
- Apache Spark Graph Processing
- PhpStorm Cookbook
- 重學(xué)Java設(shè)計模式
- concrete5 Cookbook
- Building Serverless Applications with Python
- Learning Laravel's Eloquent
- Visual FoxPro程序設(shè)計習(xí)題集及實驗指導(dǎo)(第四版)
- 詳解MATLAB圖形繪制技術(shù)
- Clojure for Java Developers
- 小程序從0到1:微信全棧工程師一本通
- Python趣味編程與精彩實例