Grails-Plugin-Consortium/grails-cxf-client — pull request #34 by derekbassett (2013-08-21 20:38:40+00:00)
Title: Change to support BindingProvider so it can be accessed by Client Code.

We are currently attempting to use your plugin to integrate with NetSuite http://www.netsuite.com using their SOAP interface. This SOAP interface uses a JSESSION Cookie Stored in the web service session to support authentication. Not a complicated implementation I know but it is the only NetSuite interface we can use.
If we just use straight apache-cxf in Grails with Spring I would create a bean using JaxWsProxyFactoryBean to configure it up and then inject the resulting bean into my application. Then inside my grails application when I accessed the Client I would be able to call:

BindingProvider bindingProvider = (BindingProvider) myWebServiceClient
bindingProvider.getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, "true")