On Thu, Feb 23, 2012 at 2:29 AM, Prabath Siriwardena <prab...@wso2.com>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"} > > 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 ? > Within Soap Body you can have only one element. So that may be picking the first element as the soap body element. thanks, Amila. > > -- > Thanks & Regards, > Prabath > > Mobile : +94 71 809 6732 > > http://blog.facilelogin.com > http://RampartFAQ.com > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > -- *Amila Suriarachchi* Software Architect WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 71 3082805
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev