Is it possible to add business logic to SOAP to REST API convertor. For example in my use case, after
I receive the XML response, then I would like to do some logic based on the XML response that I got.
@Hussaini Zulkifli , Welcome to Apigee Community !
Yes, You can do that absolutely. SOAP to REST API converter just adds bunch of policies to the API Proxy. You can add you business logic in the response of target or proxy endpoint using out of the box policies.
See below 4MV4D video that demonstrates same using a simple stock quote soap service.
As you can see in above example, We have extracted a variable from xml payload & added a business logic that says converts the response from xml to json if the extracted stock quote value is greater than 100$.
Hope it helps. Keep us posted moving forward if any.
Soap to Rest API array is not converted. 3 Answers
Unable to Extract Soap Payload 1 Answer