Hello,

i saw on on this list a patch for JSON Support. This patch does not work with the actual release and with revision 489364 I got exceptions when installing the war.

I would like to implement my own JSON Support. I need incomming and outgoing JSON messages. So this is my idea. I don't want to dig to deep in axis2 to keep up with further changes.

For outgoing messages I would like to use a Handler. I extend OMElementImpl and rewrite the serialize method. I have to change the Content-Type in the MessageContent, too. This implementation is possible without any changes on the Axis2 release.

The input seems to be a little difficult. I change the AxisRESTServlet. I take the HttpServletRequest and make a copy to my own JSONHttpServletRequest. All values will be copied to this new instance. Only the method getInputStream will be changed. This one will transform json to xml.

Please tell me if this will work or if this is a stupid idea.

Bye
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to