开发者

Grails: I can't use ws-client plugin

I'm using grails 1.3.6 and installed ws-client plugin.

I getting error in the following hello world:

def wsdlURL = "http开发者_如何学JAVA://www.w3schools.com/webservices/tempconvert.asmx?WSDL"
def proxy = webService.getClient(wsdlURL)
def result = proxy.CelsiusToFahrenheit(0)
result = "${result} degrees Farhenheit"
render result

Error:

Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl

But I have this class (Ctrl+Shift+T in STS find the class)

Thanks.

Related question: here


I removed another plugin (gsolr) that had conflicts and works.

Note: another solution is create a plugin project to wrap ws-client plugin. (I this way there is no conflict beetween classes)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜