cancel
Showing results for 
Search instead for 
Did you mean: 

Using XML 2 JSON local bean in a Java map

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (0)