O'Reilly logo

Oracle SOA Suite 11g Developer's Cookbook by Matt Wright, Antony Reynolds

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Converting between XML and JSON

Since JSON formatted data is likely to be needed only when communicating with a partner system, we'll assume that it's most common to convert between XML and JSON in Oracle Service Bus. For working with XML, we'll use XMLBeans, as that's what OSB uses. For parsing and generating JSON, we'll use Jackson (Version 1.9.x).

Getting ready

This recipe assumes the use of an existing OSB configuration project within the OSB workshop for development. So, ensure that you have installed and familiarized yourself with it prior to beginning.

Schema

If you wish to follow along exactly with these instructions you will require a copy of the schema and WSDL files used in this recipe. Copies of these are included with the code samples ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required