WSClient
Dependency :
compile ":ws-client:1.0"
Summary
Installation
grails install-plugin ws-client
Description
WSClient Plugin
This plugin allows you to connect to web services. It is based on GroovyWS - GroovySOAP replacement that uses CXF and Java5 features.Requirements
- Grails Version: 1.1.1 and above
- JDK: 1.5 and above
Installation
grails install-plugin ws-client
Usage
import org.grails.plugins.wsclient.service.WebServiceclass TestController { WebService webService def index = { def wsdlURL = "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL" def proxy = webService.getClient(wsdlURL) def result = proxy.CelsiusToFahrenheit(0) result = "You are probably freezing at ${result} degrees Farhenheit" render result } }
- or you can skip the usage of WebService class and use directly:
def proxy = new WSClient(wsdlLocation [, classLoader, soapVersion])log4j = {
…
debug 'org.apache.cxf'
}Version History
- 1.0 - Updated to GroovyWS 0.5.1.
- 0.1 - First official release.