Pages

Thursday 27 February 2014

Json Response Enable in WSO2 DSS 3.1.1

Do the following activity  to enable json response in WSO2 DSS Server

1. Change the axis2.xml 

Add the following parameter to the axis2.xml file located at  $CARBON_HOME/repository/conf/axis2

<parameter name="httpContentNegotiation">true</parameter>


2. Change  axis2_client.xml

Set 'httpContentNegotiation' parameter as true in   axis2_client.xml file located at  $CARBON_HOME/repository/conf/axis2

<parameter name="httpContentNegotiation">true</parameter>


3.Restart the server

Now  the DSS server has enabled the josn response

Note :- you should add following header to the request

"Accept:application/json"

No comments:

Post a Comment