Forum Discussion
Here's the output from the log:
Tue Mar 31 15:45:21 MDT 2020: INFO: <?xml version="1.0" encoding="UTF-8"?> <errorDescription xmlns:p="http://www.ournamespace.com">Invalid part number</errorDescription>
It appears to be a non-printable char. I also just edited the namespace, as not put publish it on the forum.
- nmrao5 years agoChampion Level 3Difficult to predict.
Is your request data valid?
Please see if below link is of any help
https://stackoverflow.com/questions/12549029/sql-error-ora-01722-invalid-number- tadudek5 years agoOccasional Contributor
I don't control the values being passed back in this response. So, I'm trying to grab the value (which comes out as a string if I use the holder.getNodeValue(xpath). That breaks, but I'm trying to get it into an excel file so that as I'm going through my response, if one of these items in my xml list has an error, I transcribe that to the file.
To get around it, it appears that I may be able to do something like this:
log.info holder.getDomNode(err).toString()
But, it's not exactly what I want.
Ideally, I just want pull what's there, regardless printable/non-printable chars. So, if I could just CDATA the content regardless of what's there, but the problem is, is that I can't get to it.
- nmrao5 years agoChampion Level 3How does the raw response look like? Text message and screen shot helps.
Would try below snippet in script assertion
assert context.response, 'Response empty or null'
log.info context.response
Related Content
- 9 years ago
- 6 years ago
Recent Discussions
- 5 days ago
- 9 days ago