I\'ve faced with a problem of sending complex requests with GroovyWS.
This is sample request generated by soapUI:
Many thanks Bill.
I just want to add some info for future readers.
To turn on logging for GroovyWS in Grails:
log4j = {
debug 'grails.app',
'groovyx.net.ws',
'org.apache.cxf'
}
With this as mentioned Bill you can see the names of the classes.
One more thing: parameters
may have different type. Not List>
. That's why it should be created too.
def params = proxy.create('com.temp.feeds.FeedRequestType$Parameters');
To retrieve available methods and fields for newly created objects you can use Groovy reflection:
params.class.methods.each{
println it;
}
params.class.fields.each{
println it;
}
That's all!
-vova