Groovyws is super fast but super slow

It's super fast when you consider that from a wsdl file, it's compiling 20+ classes for you.
It's slow when you have to do this for every request.  I opened a JIRA issue for it.  http://jira.codehaus.org/browse/GMOD-85
For now, I am going the old-fashioned route and generating a java client and using that in my Grails application
 

Comments

Grail Newbie, learning alot

Grail Newbie, learning alot but I found groovyws great and easy to use, even for nested elements! Not sure if something has been fixed since this but wrapping the call in a service works (for me).

import groovyx.net.ws.WSClient

class UserService {

def proxy

def initialize(){
if (proxy == null) {
proxy = new WSClient("http://whateverserver.com/api/services/TestWebService?wsdl", this.class.classLoader)
proxy.initialize()
}
}
def test() {
initialize()
def x = proxy.create("...")
....
}

Speed is quite good after initial call to generate the classes... if can't use grails service, use the singleton pattern. Replied here since I had the same problem and your blog came up at the top