我正在尝试使用 Groovy WS 并使用以下代码。
@Grab(group='org.codehaus.groovy.modules', module='groovyws', version='0.5.2')
import groovyx.net.ws.WSClient
proxy = new WSClient("http://lyricwiki.org/server.php?wsdl", this.class.classLoader)
proxy.initialize()
result = proxy.searchArtist("shakira")
println "${result}"
它应该很简单,但不知何故它失败了,失败告诉我:
捕获:org.apache.cxf.service.factory.ServiceConstructionException:创建服务失败。
我究竟做错了什么?