Grails-Plugin-Consortium / grails-cxf-client

Easy cxf client for grails
http://grails.org/plugin/cxf-client
27 stars 30 forks source link

Support for SOAP headers? #73

Open MagnaCarterGT opened 6 years ago

MagnaCarterGT commented 6 years ago

It doesn't seem like I can use this plugin to process SOAP headers from the WSDL. Defining them explicitly results in me getting the error "Operation ... cannot be unwrapped, input and output messages (if present) must contain only a single part". In Java, there is a flag -exsh that will process implicit headers if set to true, but it seems like this is ignored by the Grails plugin. Is there a way to make either of these work?

MagnaCarterGT commented 6 years ago

For anyone reading this in the future: I ended up just writing a custom out interceptor to add the headers to the outgoing request. Define the header values in your resources.groovy if you know the values are going to be constant.