Kathleen_Leake
16 years agoNew Contributor
How to capture data in XML embedded in a CDATA string?
The input and response XMLs for our Web Service have XML data embedded in a CDATA string inside a SOAP Envelope. Here's a sample of the response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><br /> <Envelope xmlns:ns2="http://xxxx.com/dms/fiom/apm/entity" xmlns="http://EOP.xxxxCorporation/Schema/ServiceRequestResponse"><br /> <Service Name="FIOM.APM.CreditApplication.Submit"><br /> <Operation><br /> <Response><br /> <Outcome Status="Success"><br /> <Tracking TimestampEnd="2009-05-01T14:51:35.847-05:00" TimestampStart="2009-05-01T14:50:54.675-05:00"/><br /> </Outcome><br /> <Result><br /> <ns2:creditApplicationId>2c95e67220d695740120fdbabbd30034</ns2:creditApplicationId><br /> </Result><br /> </Response><br /> </Operation><br /> </Service><br /> </Envelope>
I need to pull out various fields from the response such as the Status and the creditApplicationID so that I can pass that data as input values in a subsequent request. I'm very new to SoapUI, but I think I've determined that I need to use a property transfer for that purpose. What I haven't figured out is how to go about getting the actual data out of the embedded XML. Normally, I think I would use an XPath string, but the CDATA part has me baffled.
Can someone help?
Thanks.
I need to pull out various fields from the response such as the Status and the creditApplicationID so that I can pass that data as input values in a subsequent request. I'm very new to SoapUI, but I think I've determined that I need to use a property transfer for that purpose. What I haven't figured out is how to go about getting the actual data out of the embedded XML. Normally, I think I would use an XPath string, but the CDATA part has me baffled.
Can someone help?
Thanks.