WSO2 ESB Unable to convert complete JSON data to XML

后端 未结 4 1747
梦谈多话
梦谈多话 2020-12-11 04:08

I am constructing a POC. And I created a pass through proxy service for Google Plus. Without using any proxy service I get this is my output :

 {
   \"kind         


        
4条回答
  •  情深已故
    2020-12-11 04:42

    We have solved this issue in the latest release of ESB (version 4.5.0). By default it comes with JSONMessageFormatter/JSONBuilder that can handle JSON payloads with multiple keys.

    We also came up with another solution for handling message flows that involve different types of JSON <--> XML (or JSON <--> JSON) conversions. JSONStreamBuilder and JSONStreamFormatter can be used to implement such scenarios with the 'script' mediator. Have a look at sample #441 in ESB 4.5.0.

    To run sample #441;

    • Add JSONStreamBuilder and JSONStreamFormatter as the builder and formatter for JSON in repository/conf/axis2/axis2.xml file
    • Deploy SimpleStockQuoteService
    • Start the sample axis2server
    • Run the JSON client with 'ant newjsonclient'

提交回复
热议问题