Houcem Berrayana
Houcem Berrayana

Reputation: 3080

Integrate Groovy in an existent Web app

I have an existent web application, I'd like to add Groovy to this web app so that I can develop web service providers easily if possible. Is there a way to write a service class (like Grails service classes) and expose this class as ws without much pain ?

Grails uses the same thing : after adding one line to the service class, that class will be exposed automatically as a web service.

Regards

Upvotes: 0

Views: 531

Answers (1)

stan229
stan229

Reputation: 2607

GroovyWS is a SOAP based implementation of Apache CXF.

After some quick searching I found two tutorials that may be of help.

One using Jersey and the other using Restlet. The Jersey one seems simpler.

Creating RESTful services with Jersey and Groovy

Building RESTful Web Apps with Groovy and Restlet, Part 1: Up and Running

Upvotes: 1

Related Questions