Hi all
      I've modified the axis2.xml file adding this lines:

    <messageFormatters>
          <messageFormatter     contentType="application/json"

 class="org.apache.axis2.json.JSONMessageFormatter"/>

    <messageBuilders>
        <messageBuilder contentType="application/json"
                        class="org.apache.axis2.json.JSONOMBuilder"/>

    Also as Keith said in a previous thread I've compiled and installed the
module dynamic response:


http://wso2.org/repos/wso2/trunk/commons/dynamic-response/

    Then i've restarted tomcat and all continues working at the same way,
when i tried:



http://localhost:8080/axis2/services/Version/getVersion?response=application/json

     I've received the same XML response:

    <ns:getVersionResponse>
    <ns:return>
Hello I am Axis2 version service , My version is 1.4
</ns:return>
</ns:getVersionResponse>

         I'm using axis2 1.4 in tomcat6.

Any idea? I need a JSON response when I invoke using REST with
response=application/json

Regards
Cristian

Reply via email to