On a related note, can anyone tell me how to compose a request to a service using a plain http request or from javascript to invoke the json formatter? I tried this with the JSONMessageFormatter/JSONOMBuilder but can't seem to get the contentType sent in the request to trigger the formatter. This is on a service method with no arguments.
thanks, charles On Sep 28, 2011, at 3:58 AM, Hans De Clercq wrote: > I'm trying to alter this so I can send JSON messages instead of xml. > > What have I done? : > > - in axis2.xml : added > [CODE] <messageFormatters> > <messageFormatter contentType="application/json" > > class="org.apache.axis2.json.JSONBadgerfishMessageFormatter"/> > <!-- more message formatters --> > </messageFormatters> > > <messageBuilders> > <messageBuilder contentType="application/json" > > class="org.apache.axis2.json.JSONBadgerfishOMBuilder"/> > <!-- more message builders --> > </messageBuilders>[/CODE]