开发者

Problem with implementing a SSL Service Client with GroovyWS[Groovy/Grails]

开发者 https://www.devze.com 2023-03-21 23:58 出处:网络
I am new bie to GroovyWS. I like to consume SSL webservice in my Grails Application. So far i have following piece of code collected from

I am new bie to GroovyWS.

I like to consume SSL webservice in my Grails Application. So far i have following piece of code collected from

  def myServiceUrl ="https://myserverurl/services/myservicename"
  Map<String, String> mapClient = [
                                     "https.keystore":"",
                                     "https.keystore.pass":"",
                                     "https.truststore":"",
                                     "https.truststore.pass":"client"
                                    ]

    def proxy = new WSClient(myServiceUrl +"?wsdl", this.class.classLoader)
    proxy.setSSLProperties(mapClient)
    proxy.setBasicAuthentication("username","password")
    proxy.initialize()

but it all end up with an exception

j开发者_如何学Goava.lang.NullPointerException
at groovyx.net.ws.cxf.SSLHelper.getLocalWsdlUrl(SSLHelper.java:253)

I want to know how can i get worked aforewritten piece of code ? So far i have used GroovyWS Is there any other way to implement WS client in Grails/Groovy ?

Thanks in advance


The Groovy JIRA report here is suggesting that the password to your keystore may be different.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号