JSON Output from WSO2-Webservice needed

jans's picture

Hi all,

we're currently evaluating a way to publish some plain Java-Services automatically as WebServices.

We gave WSF/Spring a try and it worked fine, giving proper SOAP-responses in almost no time.

BUT: We prefer by far having JSON-Output. Is this possible in any way? I've read about a module called DynamicResponseHandler and changing some settings in the axis2-config, but despite of what I do, when I call the URL in my browser it will always output XML.

I'd appreciate any comments/remarks! Thanks a lot!

 

(we're using TomCat 5.5 and don't reallly want to use the MashupServer)

sanjayak's picture

Axis2/Java already has JSON

Axis2/Java already has JSON support. You should be able to get that configured via WSF/Spring.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)