-
Jan 12th, 2012, 10:30 AM
#1
Calling External Webservices(HTTPS) in GRAILS
I am struggling from past two weeks to get my https webservice client in my grails project.
really need help on this.
i am using - sts 2.8.0 ;grails2.0.0 & for WS client using plugin (http://groovy.codehaus.org/GroovyWS)
web service can be accessed - https://devora11.gryphon.priv/axis2/.../GDXAppWS?wsdl
My controller Code-
import groovyx.net.ws.WSClient
class LoadController {
def wsTest = {
println "Before calling Ws method>>>";
def proxy = new WSClient("https://devora11.gryphon.priv:443/axis2/services/GDXAppWS?wsdl", this.class.classLoader)
proxy?.initialize()
print proxy.isSpecifiedSQLAlive()
println "Proxy "+proxy ;
}
I get the following error-
Before calling Ws method>>>
| Error 2012-01-10 09:58:21,885 ["http-bio-8080"-exec-2] ERROR errors.GrailsExceptionResolver - NullPointerException occurred when processing request: [GET] /GryphonMQ/load/wsTest
Stacktrace follows:
Message: null
Line | Method
->> 217 | getLocalWsdlUrl in groovyx.net.ws.cxf.SSLHelper
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 104 | initialize in groovyx.net.ws.WSClient
| 84 | doCall . . . . in com.ggw.LoadController$_closure2$$ENLc7Q9O
| 26 | doFilter in org.grails.plugin.resource.DevModeSanityFilter
| 886 | runTask . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . . . . . in java.lang.Thread
Please suggest what other setting need for Https ? I really need it.
thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules