Grails-Plugin-Consortium / grails-cxf-client

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

mtomEnabled doesn't seem to send via MTOM/XOP #65

Open burbidge opened 8 years ago

burbidge commented 8 years ago

I have set mtomEnable=true in config.groovy but my uploaded data is alway dumped inline. Is there something else that needs to be done to send via MTOM?

burbidge commented 8 years ago

Adding the bold line below to CxfClientGrailsPlugin.groovy fixes the problem:

proxyFactoryBindingId = client?.proxyFactoryBindingId ?: "" mtomEnabled = client?.mtomEnabled ?: false secureSocketProtocol = client?.secureSocketProtocol ?: "" //should be one of the constants in CxfClientConstants, but doesn't have to be

ctoestreich commented 8 years ago

PR welcomed! :)