On Thu, Feb 23, 2012 at 2:29 AM, Prabath Siriwardena <[email protected]>wrote:
> Tried out some json stuff with the ESB latest release.. and following
> what I observed...
>
> The original json message which I want to send is following..
>
> {"name" : "Understanding JAVA" , "pages" : "100"}
>
Yeah I think Jettison expects a root element for it to be able to properly
convert from JSON to XML.
Thanks,
Hiranya
> When I sent this - this is the SOAP body I observed inside the ESB..
>
> <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "><name>Understanding
> JAVA</name></soapenv:Body>
>
> You will notice that - "pages" element is missing there..
>
> When I reformat my json message to the following - with a top, parent
> element it worked fine..
>
> { "request" :{"name" : "Understanding JAVA" , "pages" : "100"}}
>
> and the SOAP body produced was...
>
> <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "><request><name>Understanding
> JAVA</name><pages>100</pages></request></soapenv:Body>
>
> Any thoughts.. on the behavior of the first scenario ?
>
> --
> Thanks & Regards,
> Prabath
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
--
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.; http://wso2.org
E-mail: [email protected]; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev