Forum Discussion
I'm preparing a blog-post on how this can be achieved currently - there is a simple example at http://soapui.org/Functional-Testing/sa ... cks-of-xml, maybe that can help?
regards!
/Ole
SmartBear Software
- gaveeee8 years agoOccasional Contributor
Hi Ole,
Sorry that I just squeeze myself in in that support dialog, but I would also be very interested in this question/answer. So is there an additional blog post today for dynamic creation of SOAP request elements? I read the one you mentioned, but it wasn't really what I was looking for.
Regards,
Dave
- Radford8 years agoSuper Contributor
Not sure of your exact use case, but take a look at this post:
This decribes an overview of how to manipulate SOAP request XML. You might like to read up on how to manipulate the actual XML with the Groovy XmlParser, this has an example of adding elements to an existing structure. Hopefully these two should give you a starting point.
- gaveeee8 years agoOccasional Contributor
Thank you very much!
The xmlParser was exactly what I was looking for. I created a groovy-script, that based on the presence or absence of some input-parameters, creates dynamically a soap-request that I use as input for the actual request step.
I attached the whole file. I found the base structure on: http://groovyconsole.appspot.com/script/5169502497013760
Hopefully this also helps other people!
Related Content
- 5 years ago
Recent Discussions
- 8 days ago