(Quick Reference)

13.2 SOAP - Reference Documentation

Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith

Version: null

13.2 SOAP

There are several plugins that add SOAP support to Grails depending on your preferred approach. For Contract First SOAP services there is a Spring WS plugin, whilst if you want to generate a SOAP API from Grails services there are several plugins that do this including:

Most of the SOAP integrations integrate with Grails services via the exposes static property. This example is taken from the CXF plugin:

class BookService {

static expose = ['cxf']

Book[] getBooks() { Book.list() as Book[] } }

The WSDL can then be accessed at the location: http://127.0.0.1:8080/your_grails_app/services/book?wsdl

For more information on the CXF plugin refer to the documentation on the wiki.