We have a requirement in our project to expose a Restful web service which receives messages in JSON format. We tried using HTTP Binding but it accepts only XML message. As a workaround we are now trying to introduce a proxy java service which converts this JSON to XML and pass along the message to our service. we feel that this is a overhead on the server.
Is there any other way to solve this issue?
We are using SOA Suite 22.214.171.124. Any help is highly appreciated.
Thanks in advance,
Here are some references...
JSON-Lib can do the interface XML - JSON
Biemond's blog is also always a good reference...
Raja's blog has an example about how to call a REST service using HTTP Binding...
We have custom java codes to do the conversion from JSON to xml as well as xml to JSON. Http binding adapter receives message in XML format. The problem is that, Our Webservice must accept JSON message not XML which is not supported in SOA Suite 11g.
Is there any other way to implement our scenario please let me know?
Thanks in advance.
There's a sample on JSON REST here...
For other samples, see this...