Ask a Question

Parse multi line response

stuartbarber
New Contributor

Parse multi line response

I have a SOAP request that returns a multi line return which I want to drop into a data sink.

 

When I right click the data and add to sink it only adds the first line, how do I add all the lines?

 

stuartbarber_0-1675346035022.png

 

stuartbarber_1-1675346070829.png

 

2 REPLIES 2
nmrao
Community Hero

Here is the documentation link if not tried already where there is a sample given which you can try.

https://support.smartbear.com/readyapi/docs/testing/data-driven/tutorials/store/preparation.html?sbs...



Regards,
Rao.
SarahS
Staff

Hey @stuartbarber , 

It looks like your'e selecting a response node. What we need to do is select the entire response instead. 

To do this, we can use GetData and choose the target Response property from your SOAP request. 

SarahS_1-1675779842615.png

You'll be prompted to select a response node on the following screen. Don't select any of the nodes. Pressing 'OK' without selecting any individual node will reference the entire response. 

SarahS_2-1675780010635.png

 

This will store the response as the screenshot below demonstrates. 
You could also refer to the response using the following format: ${SOAP Request#Response} , where SOAP Request is the name of your target request. 

SarahS_0-1675779756459.png

 

cancel
Showing results for 
Search instead for 
Did you mean: