hi i tried import groovyx.net.ws.WSClient from both groovysh or groovyConsole, adn netbeans …
it just says “cannot resolve class groovyx.net.ws.WSClient”
any body gives me an hint?
thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Groovy WSClient is not part of the core groovy distribution. It is actually a separate standalone library. You need to download it separately and put it on your classpath or use the Grab annotation to download it at runtime.
Example:
Note that this was done with Groovy 1.7.2. Previous to 1.7 @Grab was not available on imports. If you are using an older version, put the @Grab on a method.