Groovy-wslite is currently recommended way for doing client calls to web services from groovy. It has very interesting format for describing requests, unfortunately it is not very well documented, and for me it was totally unclear how to send lists of objects to service. Fortunately, source code is available and is easy to dig if you have some time.
Basically, all you need to do is just send a bunch of regular objects, and they will be combined in list on the other end. There is example:
Basically, all you need to do is just send a bunch of regular objects, and they will be combined in list on the other end. There is example:
def response = client.send(SOAPAction:'https://server/services/service') {
body {
create() {
dto {
name('name123')
id('123456')
child {
name('child1')
birthday('2011-01-01')
}
child {
name('child2')
birthday('2012-01-01')
}
}
}
}
}