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 ?

--
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

Reply via email to