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:
Hay varios plugins que agregan soporte SOAP a Grails dependiendo de su enfoque preferido. Para el primer contrato de servicios SOAP esta el plugin Spring WS, mientras que si quiere generar una API de SOAP desde servicios Grails hay varios plugins que hacen esto incluyendo:- CXF plugin el cual usa la pila de SOAP CXF
- Axis2 plugin el cual usa Axis2
- Metro plugin el cual usa el framework Metro (y puede tambien ser usado por Contract First)
Most of the SOAP integrations integrate with Grails services via the
La mayoria de las integraciones de SOAP son integradas con Grails services son via la propiedad estatica exposes static property. This example is taken from the CXF plugin:
exposes. Este ejemplo esta tomado del plugin CXF:class BookService { static expose = ['cxf'] Book[] getBooks() {
Book.list() as Book[]
}
}
The WSDL can then be accessed at the location:
El WSDL puede entonces ser accesado en la ubicacion: http://127.0.0.1:8080/your_grails_app/services/book?wsdl
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.
Para mas informacion del plugin CXF refierase a la documentacion en la wiki.

