How to parse soap response returned by external webservice?
Issue
Situation is that customer has a webservice step in process map. This webservice step invokes an external webservice that returns a soap response. Process needs to parse the soap response downstream and make use of data inside soap:body.
Solution
There are two things that should be followed in order to achieve this -
1) Namespaces of response elements should be defined in process -> advanced properties; so that xpath engine can find those elements in that namespace.
2) In xpath expressions, namespace qualified element names (e.g. <namespace>:<elementname>) should be used for referencing.
Additional Information
Please find a sample attached to this tech note. File name: ParseSOAP_ST.zip.
1) Import process definition using workbench. Process definition is in "ParseSOAP.1.0.xml".
2) Execute the process and pass sample soap response in "InputData.txt".
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
