This discussion is archived
3 Replies Latest reply: Aug 26, 2012 4:37 PM by vladodias RSS

Receiving JSON message in BPEL

763791 Newbie
Currently Being Moderated
Hi All,

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 11.1.1.4. Any help is highly appreciated.

Thanks in advance,
Kaushik P
  • 1. Re: Receiving JSON message in BPEL
    vladodias Guru
    Currently Being Moderated
    Hi,

    Here are some references...

    JSON-Lib can do the interface XML - JSON
    http://json-lib.sourceforge.net/

    Biemond's blog is also always a good reference...
    http://biemond.blogspot.com.au/2009/05/osb-rest-service-with-xml-json-output.html

    Raja's blog has an example about how to call a REST service using HTTP Binding...
    http://rajbpelblog.blogspot.com.au/2010/10/http-binding-in-soa11g.html

    Cheers,
    Vlad
  • 2. Re: Receiving JSON message in BPEL
    763791 Newbie
    Currently Being Moderated
    Hi Vlad,

    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.
    Kaushik P
  • 3. Re: Receiving JSON message in BPEL
    vladodias Guru
    Currently Being Moderated
    There's a sample on JSON REST here...
    http://java.net/projects/oraclesoasuite11g/downloads/download/OSB/osb-206-JSONREST.zip

    For other samples, see this...
    http://java.net/projects/oraclesoasuite11g/pages/OSB

    Cheers,
    Vlad

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points