Forum Discussion
Sphujidhwaj
Contributor
Hi Rup,
When I say names more than 500 it means the count of names,I have more than 500 blocks or chunks of names to be extracted.
Still I have not got there yet I am first trying to extract the data from the CData
But encountering the following message.
groovy.lang.MissingPropertyException: No Such Property: messageExchange for class: Script8 error at line 3
import com.eviware.soapui.support.XmlHolder respXmlHolder = new xmlHolder(messageExchange.getResponseContentAsXml()) respXmlHolder.declareNamespace("ns1","http://tempuri.org/") CDATAXml = respXmlHolder.getNodeValue("//ns1:Result") log.info(CDATAXml)
Please let me know where I am going wrong. Are there any links for the same where I can get some assistance in debugging such errors.
Thanks,
SD
nmrao
9 years agoChampion Level 3
first of all it should be 'XmlHolder', and is case sensitive.
- Sphujidhwaj9 years agoContributor
Yes it is in Caps as shown below
respXmlHolder = new XmlHolder(messageExchange.getResponseContentAsXml())
- Layansan9 years agoNew Contributor
Try this:
groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ); holder = groovyUtils.getXmlHolder("RequestStepName#ResponseAsXml"); //Change the RequestStepName
Related Content
Recent Discussions
- 8 days agoemoya