Forum Discussion
chioubaca
12 years agoOccasional Contributor
I didn't say it clearly but I am trying to send a POST request to a REST service.
My POST request contains some parameters AND the xml content that is sent to the service (and that I want to replace).
As you said, I'm in case b: the xml content varies too much to change eache node value one by one.
I tried:
def holder = groovyUtils.getXmlHolder("CreationPOST#Request")
holder.updateProperty('REQUEST_XML_CONTENT', "test")
But I get the following error:
No signature of method: com.eviware.soapui.support.XmlHolder.updateProperty() is applicable for argument types: (java.lang.String, java.lang.String) values: [REQUEST_XML_CONTENT, test]
######################
And when I try:
project.updateProperty('REQUEST_XML_CONTENT', "test")
I get: ERROR:groovy.lang.MissingPropertyException: No such property: project for class: Script5
Any idea ?
My POST request contains some parameters AND the xml content that is sent to the service (and that I want to replace).
As you said, I'm in case b: the xml content varies too much to change eache node value one by one.
I tried:
def holder = groovyUtils.getXmlHolder("CreationPOST#Request")
holder.updateProperty('REQUEST_XML_CONTENT', "test")
But I get the following error:
No signature of method: com.eviware.soapui.support.XmlHolder.updateProperty() is applicable for argument types: (java.lang.String, java.lang.String) values: [REQUEST_XML_CONTENT, test]
######################
And when I try:
project.updateProperty('REQUEST_XML_CONTENT', "test")
I get: ERROR:groovy.lang.MissingPropertyException: No such property: project for class: Script5
Any idea ?
Related Content
Recent Discussions
- 11 days ago