Forum Discussion
Radford
8 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.
gaveeee
8 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!
- nmrao8 years agoCommunity HeroThank you for searching and posting here. Posted that script some time ago in there. Glad it is useful for some one. If you see that, XmlParser is not used. Instead, StreamingMarkupBuilder is used.