Hi all,
We are trying to invoke a SOAP service which is having an issue while trying to use "Call Web Service"
Hence, we have used "Integration" object to call the endpoint with content type as text/xml.
We are able to invoke the "Integration" object as expected and also getting the response as soap xml.
Can any one suggest on how to convert the returned soap xml into a custom CDT.
Thanks,
Phani
Discussion posts and replies are publicly visible
You will need to manually parse the string and create a CDT using the type cast function. Example type!myCDT(fieldA: "fieldValue", fieldB: 1). You can use a combination of the search() and mid() functions or xpathsnippet(). It might look something like:
load( local!xmlResponse: rule!yourIntegration(), local!fieldA: xpathsnippet(\*Parsing Logic goes here*\), local!fieldB: xpathsnippet(\*Parsing Logic goes here*\), type!myCDT(fieldA: local!fieldA, fieldB: local!fieldB) )