Original Message:
Sent: Tue January 09, 2024 05:07 AM
From: David Afolabi
Subject: ODM API conversion from SOAP to REST
Thank you Alain, I'll look into this as well.
Thanks a lot
------------------------------
David Afolabi
Original Message:
Sent: Mon January 08, 2024 04:31 PM
From: Alain Robert
Subject: ODM API conversion from SOAP to REST
Hi,
There is no direct way to remove XML Binding, The recommendation is to use JAXB to generate XOM classes from the XML schema and then generate a BOM from this new java XOM. See https://docs.oracle.com/javase/8/docs/technotes/tools/unix/xjc.html
Control the package output so that it matches the current path of the classes in the BOM.
The expectation is that this new BOM should be fairly close to the current BOM you are using so that the impact on the rules is minimal.
To reduce the impact further instead of generating a new BOM you can change the B2X mapping of the classes in the existingBOM with the one generated and add B2X implementation if needed. replace all references to IlrXMLObject with the generated classes.
------------------------------
Alain Robert
Original Message:
Sent: Wed January 03, 2024 04:19 PM
From: David Afolabi
Subject: ODM API conversion from SOAP to REST
Hi Alain, sorry to brother you again but I am still a bit stuck on this work.
we use ODM on cloud and Rule designer.
So basically, I realised that our system currently use XML binding, I was told that I will need to move from XML binding to Java XOM.
I am still a bit confused as to how this transformation works because I couldn't find any resources online to guide me.
Is there a way to do this please?
------------------------------
David Afolabi
Original Message:
Sent: Wed November 22, 2023 03:41 PM
From: Alain Robert
Subject: ODM API conversion from SOAP to REST
You can use the WADL format and continue with XML, this will require minimal changes. If you decide to go with the OpenAPI - JSON format then check in the RES Console to generate the descriptor that shows the input expected.
Note that you can test the input format both XML and JSON with the test button.
------------------------------
Alain Robert
Original Message:
Sent: Wed November 22, 2023 03:16 AM
From: David Afolabi
Subject: ODM API conversion from SOAP to REST
Thank you Alain.
So our ODM platform is integrated with IBM BPM which controls the user interface. So we make API calls from ODM to BPM. I just need to know what parameters needs changing and how to convert to xml response to Json.
------------------------------
David Afolabi
Original Message:
Sent: Tue November 21, 2023 06:41 PM
From: Alain Robert
Subject: ODM API conversion from SOAP to REST
Which part is bothering you, is it the parameters or the invocation? In what application are you integrating your calls?
You can get a good idea of how to make the call using the test tool accessible in the action "Retrieve HTDS description file".
See details here: https://www.ibm.com/docs/en/odm/8.11.1?topic=rulesets-testing-ruleset-rest-execution
To make the call in java there is a sample here: https://www.ibm.com/docs/en/odm/8.11.1?topic=8111-calling-decision-services-rest-api and more details here https://www.ibm.com/docs/en/odm/8.11.1?topic=applications-executing-rules-by-using-rest-service
------------------------------
Alain Robert
Original Message:
Sent: Tue November 21, 2023 03:52 PM
From: David Afolabi
Subject: ODM API conversion from SOAP to REST
Hi all, I am currently in the process of converting some SOAP API calls to REST APIs in ODM. Has anyone been through this process please and what steps do I need to take? Is there a guide somewhere on how to do this please?
------------------------------
David Afolabi
------------------------------