liche
13 years agoOccasional Contributor
Parsing mq xml message
Hi,
I have some difficulties in parsing an mq xml message.
I have 4 test steps in my case (I follow what I find in the forum) :
1. A test request listening to queue (GetMsg)
2. A groovy script which parse the message received by the first step (TreatMsg)
3. A test request writing in a queue (SendMsg)
4. A groovy script which goes to step 1, to loop.
In my script (step 2) I have :
I have an error at the last line : "Unexpected element CDATA".
Have you an idea of the problem/solution ? (not getting the message from the first step or/and not using the good method)
Thanks for you help.
I have some difficulties in parsing an mq xml message.
I have 4 test steps in my case (I follow what I find in the forum) :
1. A test request listening to queue (GetMsg)
2. A groovy script which parse the message received by the first step (TreatMsg)
3. A test request writing in a queue (SendMsg)
4. A groovy script which goes to step 1, to loop.
In my script (step 2) I have :
com.eviware.soapui.support.GroovyUtils
com.eviware.soapui.support.XmlHolder
def groovyUtils = new GroovyUtils(context)
def holder = groovyUtils.getXmlHolder('${GetMsg#Response}')
I have an error at the last line : "Unexpected element CDATA".
Have you an idea of the problem/solution ? (not getting the message from the first step or/and not using the good method)
Thanks for you help.