Skip to Content

Using XML 2 JSON local bean in a Java map

Feb 02 at 01:41 PM


avatar image

I have an interesting problem. I need to create an encoded 256-hash "signature" of a message that includes the body of the message.

The trick here is that the body of the message has to be JSON. Process Orchestration (PO) always uses XML.

Here is the scenario:

1. Proxy call to PO

2. PO maps to the xml version of the JSON request

3. Need to convert entire XML message to JSON

4. calculate the 256-hash signature (we have the java code for this)

5. Send the standard JSON to customer's REST adapter with signature in the URL (as a URI Parameter)

I have a handle on how to do all this except XML to JSON. The only conversion routines I can find provided by PO is the local enterprise bean variant. Is that possible to call it directly from a JAVA map to do the conversion? if so any examples? If not any ideas?

I have researched XML to JSON third party utilities and there are quite a few but all are custom 3 party with what our company considers high risk usage.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers