I tried to install the plugin for cxf server in order to expose some grails services as SOAP web services, according to Grails 2.3 the new plugin installation is:

compile ":cxf:1.1.1"

in plugins section of BuildConfig.groovy, however it does not work, I tried to expose a service and the annotations are not recognized, I am working with GGTS (Groovy Grails Tool Suite) and I can't see the plugin installed under the plugin section.

My environment is Grails 2.3, Java 7, Groovy 2.1

Has anybody tried this plugin using Grails 2.3.0 and stumbled upon this issue in GGTS?

有帮助吗?

解决方案

In order for the annotations to be recognized you'll need to import the following libraries into the interface or service class you're using to expose the endpoint:

import javax.jws.WebService
import org.grails.cxf.utils.EndpointType
import org.grails.cxf.utils.GrailsCxfEndpoint

The plugin should show up in the plugins dir if you refresh the dependencies for the project.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top