electric_Insura
11 years agoContributor
[Resolved] Get rid of unwanted CDATA in request
Hi,
I have a SOAP request test step to which I'm feeding escaped XML as one of the parameters.
The UI automatically puts the XML into CDATA brackets.
The Web service that I'm testing fails with the CDATA brackets present. If I remove the CDATA enclosure manually, the request goes through.
I tried putting the following as a top level RequestFilter.filterRequest event in my project:
No luck. It doesn't even touch it.
I need this solved in order to be able to test this Web service at all.
Thanks for any advice.
I have a SOAP request test step to which I'm feeding escaped XML as one of the parameters.
The UI automatically puts the XML into CDATA brackets.
The Web service that I'm testing fails with the CDATA brackets present. If I remove the CDATA enclosure manually, the request goes through.
I tried putting the following as a top level RequestFilter.filterRequest event in my project:
context.requestContent = context.requestContent.replaceAll('"<!\\[CDATA\\[", "" , '')
context.requestContent = context.requestContent.replaceAll(']]>', '')
No luck. It doesn't even touch it.
I need this solved in order to be able to test this Web service at all.
Thanks for any advice.