How to consume WSDL web service in Grails?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to consume WSDL web service in Grails?

newbie@grails
I am new at using Grails and trying to consume a web service from WSDL with following code -

def some_function(String a, String b) {
                def proxy = new WSClient("wsdl_url", this.class.classLoader)
                proxy.initialize()
                def result = proxy.some_WsdlOperation(a, b)
}

But proxy.initialize gives null pointer exception. Anyone can help me?

Thanks.