Message-ID: <222228943.3524.1369384169234.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3523_416937072.1369384169234" ------=_Part_3523_416937072.1369384169234 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
We've been trying to get full fledged web services working in Gr= ails built in contract frist approach, it felt like it should be easy, as a= ll the bits were there, but all of the plugins to date were more proof of c= oncept vs Enterprise ready (e.g. no control over namespaces). After looking= at many technologies, decided to give Metro a try.
So, the target was to get Metro running with the following key requireme= nts:
Create a simple Grails application (working from the ground up is the be= st way to explain it, rather than trying to explain our existing applicatio= n).
Download Metro Grails plugin:=C2=A0 https://jax-ws= -commons.dev.java.net/grails/ and install it in grails app.
I used grails-metro-1.0.zip. If you are building the web service bottom-= up, you can follow the example on the page above and create web services wi= thout further steps.=C2=A0
=C2=A0Since the plugin doesn't have the utility to create java artifacts= from the wsdl, download Metro [https://metro.dev.java.net/] and unzip it. = Note that the bin folder has wsimport scripts which does the reverse engine= ering.
From the bin folder execute
For Example: wsimport -s src -d classes HelloWorld.wsdl
This generates all the java classes with the annotations required for th= e contract first web service. Move the java classes from the src folder to = grails app src/java folder.
Generate the groovy service
Run the grails application------=_Part_3523_416937072.1369384169234--