Using JSONPath to Query JSON in OSB

Extracting values from JSON is much easier with JSONPath. Download the full example. Recently we have used Javascript to query and update JSON payloads. There is a way to extract necessary values from JSON in a much simpler way. Meet JSONPath. See other posts about OSB & JSON: Using Javascript to Inspect & Modify JSON Payload JSON Proxies: Inspecting & Modifying the Payload (using conversion to XML) Why JSON Does Help Direct Proxy Performance How To Build a JSON Pass-Through Proxy in OSB OSB and JSON Proxies: Gathering Statistics

Continue reading

Using Javascript to Inspect & Modify JSON Payload

How to read and update JSON in OSB with JRE’s Javascript Engine. Download the full example. In the previous article we updated a JSON payload by converting it to XML (and back). However, the code that does the transformation is not very readable. Can we, inside of OSB, use a scripting language which is more native to JSON? Say, … Javascript? See other posts about OSB & JSON: JSON Proxies: Inspecting & Modifying the Payload (using conversion to XML) Why JSON Does Help Direct Proxy Performance How To Build a JSON Pass-Through Proxy in OSB OSB and JSON Proxies: Gathering Statistics

Continue reading

How To Hide Dependency Libraries in an OSB Callout JAR

How to place dependency libraries into a JAR and hide them from the callout dialog. Sometimes we have to use OSB’s Java callouts. On many occasions the callout Java code requires the use of external libraries (dependency JARs). Here comes the problem: how to deploy these dependency JARs? Should we deploy the dependencies as JAR resources right into the OSB project? Or should we package them into the callout JAR itself?

Continue reading

JSON Proxies: Inspecting & Modifying the Payload

How to read and update JSON in OSB. Download the full example. UPDATE from future! DO NOT CONVERT JSON to XML! It is a pain if you need to convert it back! Use Javascript! Using Javascript to Inspect & Modify JSON Payload See other posts about OSB & JSON: Why JSON Does Help Direct Proxy Performance How To Build a JSON Pass-Through Proxy in OSB OSB and JSON Proxies: Gathering Statistics We can make a pass-through JSON proxy in OSB pretty easily.

Continue reading

OSB and JSON Proxies: Gathering Statistics

How to collect OSB per-operation statistics for a JSON proxy. Download the full example. See other posts about OSB & JSON: Why JSON Does Help Direct Proxy Performance How To Build a JSON Pass-Through Proxy in OSB JSON Proxies: Inspecting & Modifying The Payload (Special thanks to Saeed Awan for the reference implementation.) In one of my previous posts, I demonstrated how to implement a simple pass-through JSON proxy.

Continue reading

How To Build a JSON Pass-Through Proxy in OSB

This is a step-by-step guide on how to implement a pass-through JSON proxy in OSB. Download the full example. See other posts about OSB & JSON: Why JSON Does Help Direct Proxy Performance OSB and JSON Proxies: Gathering Statistics JSON Proxies: Inspecting & Modifying The Payload JSON is cool, but OSB doesn’t recognize it as a first-class data format. OSB cannot validate it, cannot transform it, and cannot even add the smallest security token to the JSON payload.

Continue reading

And Why JSON Does Help Direct Proxy Performance

For direct OSB proxies, passing JSON content instead of XML will improve the overall end-to-end performance due to much smaller serialization and deserialization overhead. See other posts about OSB & JSON: How To Build a JSON Pass-Through Proxy in OSB OSB and JSON Proxies: Gathering Statistics JSON Proxies: Inspecting & Modifying The Payload In my previous post I attempted (and failed) to improve the performance of a service with a large response by gzipping its payload.

Continue reading