Message-ID: <200255885.9621.1406528645907.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9620_1375106757.1406528645907" ------=_Part_9620_1375106757.1406528645907 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
If you need to quickly consume and/or publish WS-I compliant web services, GroovyWS can help you.
If you are online and using the latest groovy version,= here is the no-brainer way to use GroovyWS:
Make sure to have the correct GroovyWS grape config file
Mak= e sure that you have javac in your path - this is required for automatic ge= neration of the classes on the client side
Groovy 1.6.3 r= elies on Ivy 2.0 which has problem computing some dependencies checksums - = if you experience this problem, you have to either download a Groovy snapsh= ot or upgrade Ivy to version 2.1.0 (or above) in your $GROOVY_HOME director= y.
If you need more control, see the GroovyWS installation notes.
GroovyWS comes with two sets of APIS that are briefly described below us= ing a simple example.
When your service is using groovy beans on the server side, you may want= to control the fields that are serialized. This is done using a small xml = file located next to your script. A small example is demonstrating this:
When consuming a web service, you may also be using some complex types. = Those types are automatically generated from the WSDL, compiled and made av= ailable via your classloader. The client API is providing you a method to e= asily instantiate such a complex object from its name. Obviously, knowing t= he class name can be difficult when using a complex web service and may req= uire to study the contract (WSDL). In order to help the user, GroovyWS is l= ogging the names of the classes generated on the fly.
The client side integrates seamlessly with Grails applications.
You can also used secured web-services with GroovyWS. If you wish to do = so check Using WS-Security.
There exists a lot of public web services. We provide two examples that = show how easy it is to use GroovyWS to tap on these resources.
More WSClient configu= ration is available if you need to use proxies, basic authentication an= d security related features.
CXF is generating tons of logging information. If you want to reduce the= amount of information, you need to set the -Djava.util.logging.con= fig.file property.
If you use GroovyWS, please let us know and feel free too add a quote in= this section.
The build process is using gradle. In order to build the= sources from svn, just run:
in the directory containing the source tree.