Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To receive JSON responses from DSS, the httpContentNegotiation property should be enabled in the  axis2.xml and axis2_client.xml files which that are stored in the <DSS_HOME>/repository/conf directory. Note that this setting (JSON content negotiation) cannot be enabled as the default setting. After content negotiation is enabled, you must send requests to the server by adding Accept:Application/json” to the request header, and as a result, DSS will return the response in JSON format.

...

  1. Open the axis2_client.xml file stored in the <DSS_HOME>/repository/conf/axis2 directory.
  2. Set the 'content negotiation' parameter to True. Note that this parameter is already available in the axis2_client.xml and it is only required to be enabled.

    Code Block
    <axisconfig name="AxisJava2.0">
        <!-- ================================================= -->
        <!-- Parameters -->
        <!-- ================================================= -->
        <parameter name="hotdeployment">true</parameter>
        <parameter name="hotupdate">false</parameter>
        <parameter name="enableMTOM">false</parameter>
    
    
        <!-- commons-http-client defaultMaxConnPerHost -->
        <parameter name="defaultMaxConnPerHost">500</parameter>
        <!-- commons-http-client maxTotalConnections -->
        <parameter name="maxTotalConnections">15000</parameter>
    
    
        <!--If turned on with use the Accept header of the request to determine the contentType of the
        response-->
        <parameter name=“httpContentNegotiation">True</parameter>

...