ctoestreich/cxf-client — Issue #8: PortType dependency injection in a grails service.
Author: scabane
Created: 2012-02-27 16:27:39+00:00
State: open

We are currently trying to use the cxf-client plugin in a custom grails spring security authentication provider.

Our current architecture delegates the authentication services to an external application, using SOAP web services to accomplish that. Thus we need to be able to call web services from this custom authentication manager.

As we are already using CXF client for all the other web services call of our application, we tried to use it for this custom auth provider.

However, we cannot achieve this as the dependency injection of the CXF Client service bean does not seem to work in a service class (we always end up with a null objet).
Furthermore, the Spring security architecture does not allow us to cleanly provide the client to the custom provider from the login controller

Would there be some way to work around this (other than manually initializing the PortType directly using cxf standard mechanism),? As we couldn't find any information about that in the current documentation, I'm aking the question here.

Thanks for all your work

SC.