NAVTEQ_Support_1
15 years agoContributor
How can I enter special whitespace characters into request?
In some of our old test we have requests where we entered line feed or carriage return special characters with the following piece of code:
<element>${=String.valueOf('\u000A')}</element>
I *THINK* it used to work around version 3.0 but in versions 3.5 and 3.6 that code is not interpreted the way we intend but some messaging from SoapUI gets there (as we can see in raw code):
<element>startup failed:
Script25.groovy: 1: unexpected char: ''' @ line 1, column 16.
String.valueOf('\u000A')
^
org.codehaus.groovy.syntax.SyntaxException: unexpected char: ''' @ line 1, column 16.
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:97)
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:71)
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:249)
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:158)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:832)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:519)
.......................................and many more lines like that. I can provide the whole think if necessary.
Is there some other way how to enter such special characters?
<element>${=String.valueOf('\u000A')}</element>
I *THINK* it used to work around version 3.0 but in versions 3.5 and 3.6 that code is not interpreted the way we intend but some messaging from SoapUI gets there (as we can see in raw code):
<element>startup failed:
Script25.groovy: 1: unexpected char: ''' @ line 1, column 16.
String.valueOf('\u000A')
^
org.codehaus.groovy.syntax.SyntaxException: unexpected char: ''' @ line 1, column 16.
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:97)
at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:71)
at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:249)
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:158)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:832)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:519)
.......................................and many more lines like that. I can provide the whole think if necessary.
Is there some other way how to enter such special characters?