我是GroovyWS的新人。
我喜欢在Grails应用程序中使用SSL webservice。到目前为止,我已经收集了以下代码片段
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()但这一切都以一个异常结束
java.lang.NullPointerException
at groovyx.net.ws.cxf.SSLHelper.getLocalWsdlUrl(SSLHelper.java:253)我想知道怎样才能得到预先编写好的代码?到目前为止,我已经使用了GroovyWS,还有没有其他方法可以在Grails/Groovy中实现WS客户端呢?
提前感谢
发布于 2011-07-22 16:31:58
Groovy JIRA报告here建议您的密钥库的密码可能不同。
https://stackoverflow.com/questions/6786879
复制相似问题