Forum Discussion
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
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!
- nmrao8 years agoChampion Level 3Thank 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.
Related Content
- 5 years ago
Recent Discussions
- 4 days ago
- 9 days ago