On Fri, Jul 11, 2008 at 2:07 PM, Douglas Campbell <[EMAIL PROTECTED]>
wrote:

> From what I can gather from documentation and posts, json is "supported" in
> axis2 with the following caveats.  Please confirm, deny, and above make
> clear :)
>
> a client posting a payload to an axis2 web service must wrap the json
> payload in a soap envelope. True or False?

False. You can send a request with the contentType as  application/json or
text/javascript

>
>
> a client receiving a response can receive pure json i.e. json without an
> xml envelope around it , within it, or anywhere in sight.  True of False?

True. You can try it live at http://mooshup.com. Mooshup is a community site
for user to share there mashups. Mooshup is powered by the WSO2 Mashup
Server [1] which in built on top of Axis2. We allow users to write services
in JavaScript there. You can give it a shot by registering at mooshup.com.
http://mooshup.com/services/system/version/getVersion will give you the
normal REST (application/xml) response and
http://mooshup.com/services/system/version/getVersion?response=json will
give you a json response (Sending JSON because of response=json is handled
internally by a Axis2 module). I recomend you use the WSO2 Mashup Server if
you are interested in doing stuff using JavaScript. Its made available under
the Apache License.

Thanks,
Keith.

[1]  http://wso2.org/projects/mashup

>
>
> I took a look at the integration test in the modules/json folder of the src
> distribution and as far as I can tell the test does not send any json.  It
> just sends "a json string" as the response payload of an OMElement.
>
> -Doug
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Reply via email to