Forum Discussion

SKGREENWOOD's avatar
SKGREENWOOD
New Contributor
13 years ago

Datasink doubles double quotes

We are using Datasink in SoapUI Pro 4.5.1 to capture Request and Response XML to plain text files.

All double quote characters in the datasink files have been doubled up and the entire file is delimited by a set of double quotes at the start at end. This means that the files can not be read by XML-Spy or Internet Explorer.

e.g.
"<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns=""http://rts.hbs.poa.fs.fujitsu.com/"">

instead of:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://rts.hbs.poa.fs.fujitsu.com/">

Any suggestions how we could suppress these extraneous double quotes.

2 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    Do not have idea about Datasink. Have you checked if there is a known bug in the version you are using? Also interested to know how these files are saved. And it is mentioned that request and responses are saved in plain text files, any specific reason for this instead of saving them as xml files? Is there is specific way you want to fix the multiple double quotes into one? Are you using these files further for doing any kind of processing?

    In soapui:
    To get rid of the problem you mentioned, you may write a groovy script to read the file into a string (assuming the size of the file is ok store in string type). Find the pattern / occurance of two double quotes and replace with single double quote and write the string back to file.

    Or you may use any text editor, simply use find and replace.