Not sure you can do it from a "Web Service", but you might want to check out this article "Create an asynchronous message framework with Ajax and Apache Geronimo" - http://www.ibm.com/developerworks/opensource/library/os-ag-asynchajax/index.html. It's an excellent architectural approach utilizing Geronimo to route AJAX request and return JSON responses.
Coming from the .Net world, I'd also recommend taking a look at the JSON-lib library to form any JSON on your own from a servlet or jsp. I personally had some problems with escaping special characters and this library made life really simple. Feel free to contact me off list if you have generic JEE/JSON questions that aren't pertinent to Geronimo. Mark Aufdencamp [email protected] > -------- Original Message -------- > Subject: Building a JSON Web Serivce > From: hivie7510 <[email protected]> > Date: Mon, January 26, 2009 5:02 pm > To: [email protected] > > > I am trying to find a good reference for building a web service that responds > in JSON. I am using Geronimo 2.1.3, configured to use Axis2. I have found > references for connecting to a JSON service, but nothing of substance on > actually creating the service itself. I am a native .NET developer, so much > of assumptions that the tutorials use fail for me due to my lack of > understanding. Any help would be appreciated. > > Thanks > -- > View this message in context: > http://www.nabble.com/Building-a-JSON-Web-Serivce-tp21673997s134p21673997.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
