Hi Devs,

Axis2 Native JSON support improvements have been merge with axis2 wso2
version. For use that new implementations we have to modified axis2.xml
file. Followings are the changes that need to do.

Add JSON builder and formatter.

                  <messageBuilder contentType="application/json"

class="org.apache.axis2.json.gson.JsonBuilder" />

                  <messageFormatter contentType="application/json"

class="org.apache.axis2.json.gson.JsonFormatter" />

Remove RequestURIOperationDispatcher handler from dispatch phase and place
it as the last handler in transport phase. Now add new JSONMessageHandler
after the RequestURIOperationDispatcher. Finally transport phase would be
like following,

phaseOrder type="InFlow">
                <!--  System predefined phases  -->
                <phase name="Transport">
                    -------------
                    <handler name="RequestURIOperationDispatcher"

class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
                    <handler name="JSONMessageHandler"

class="org.apache.axis2.json.gson.JSONMessageHandler" />
                </phase>
                ------------
            </phaseOrder>

T
his is the part that concern me, do this brake anything?


T
hanks,
Shameera.



-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com <[email protected]> , shameera AT
apache.org<[email protected]>
*
*phone:  +9471 922 1454*
*
*
*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter     : *https://twitter.com/Shameera_R
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to