Forum Discussion

keanesean's avatar
keanesean
Occasional Contributor
9 years ago

ReadyAPI stripping newline characters from SOAP xml response

I have a Soap request that returns a long payload in the response that I need to pass in as a parameter in a subsequent request - see example below. The newline needs to be kept, but when I try to pass this value in to the next request, it seems to be removing the newlines, which results in the request being rejected by the target application. 

Can anyone advise how I can ensure the newline chars are kept?

For some reason, the equivalent tests using REST rather than SOAP work fine, the newline char appears to be maintained. 

 

XML:

  <payload>eJxdUtuOgjAUfPcriO9LWxa5mNrEW7Imi7or+wFsPVESuVhg0b/fFq1Fm5B0zkzp6cyh8VEALHbA
GwFsYFk0gqpKDmCl+8mwTOyRT0jghO5QkZLeTr/hfNtL9AeiSoucERvbDkUaajoCwY9JXuuCLCX8
PFutmRsSz/cpukPDZyBWCxZ678HIIS6+LYpuZSPLkwxYvNzNN1a0ma0+l1ZclFZTUtQxRsiLJq/F
lQWOR5EGhm7EiR3ruhwj1LatXUPFi6z4TU9gp0CRovVj0Otr6LZRhap/3SXds2gxbfvfOuaXKD5c
N/HXhCKlMPp9UgNzMPEIdohF/DF2xySkqKv3XMtU54xgW5lxR4YuVSNTrVGSfqVnRiME5PzKQj+Q
bmhkBHApixzkGRnmY9/rVtrDpNFvP9LoDjzMefWCzj+eUue1zE/1RgjWa6Ty74inDlKZEPEx6VpI
TVwU6X/K6/QYqli6gWUDip6H+R9qDMSK</payload>  

 

Raw:

<payload>eJxdUtuOgjAUfPcriO9LWxa5mNrEW7Imi7or+wFsPVESuVhg0b/fFq1Fm5B0zkzp6cyh8VEALHbA&#xD;
GwFsYFk0gqpKDmCl+8mwTOyRT0jghO5QkZLeTr/hfNtL9AeiSoucERvbDkUaajoCwY9JXuuCLCX8&#xD;
PFutmRsSz/cpukPDZyBWCxZ678HIIS6+LYpuZSPLkwxYvNzNN1a0ma0+l1ZclFZTUtQxRsiLJq/F&#xD;
lQWOR5EGhm7EiR3ruhwj1LatXUPFi6z4TU9gp0CRovVj0Otr6LZRhap/3SXds2gxbfvfOuaXKD5c&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