We create a utility that will:
- Accept JSON through a RESTful service
- Match it with POJO
- Convert it to an object that can be used to call the remote SOAP service (JSON is not identical to SOAP-XML, for example, several fields are missing, so we need to display objects instead of automation).
- Call the SOAP API call and get the result.
- Convert this result to JSON and send it to the client. (The process is synchronous to avoid complexity initially).
A Plan . We successfully tried Mulesoft Anypoint studio to create the stream. It provides Data Mapping, where we can easily map elements from JSON to a SOAP stub and convert the results to JSON again.
Plan Bed and . Due to licensing restrictions in Plan A, I plan to do this with Camel. I'm new to this, but I can successfully create a POC web application that provides a servlet that accepts JSON. But now I’m stuck because I don’t know how to transform and call remote soap. (WSDL is available).
Estimated flow
Client → (Camel starts here) RESTful service → Convert data → Remote SOAP → Accept the response and convert to JSON → Send back to the client.
Any pointer in the right direction will be helpful.
source
share