cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Poth (JIRA)" <>
Subject [jira] [Commented] (CXF-6732) Allow SOAPAction to be overwritten via RequestContext property
Date Wed, 09 Nov 2016 15:04:58 GMT


John Poth commented on CXF-6732:

Hi [~dtax],

I've push a fix in [camel-cxf|] that fixes this.
To workaround this issue you can register your own camel-cxf binding that basically mimics
the fix:


import java.util.Map;

import org.apache.camel.Exchange;
import org.apache.camel.component.cxf.CxfBinding;
import org.apache.camel.component.cxf.DefaultCxfBinding;
import org.apache.cxf.binding.soap.SoapBindingConstants;

public class SoapHeaderCxfBinding extends DefaultCxfBinding{

    protected void propagateHeadersFromCamelToCxf(Exchange camelExchange,
                                                  Map<String, Object> camelHeaders,
                                                  org.apache.cxf.message.Exchange cxfExchange,
                                                  Map<String, Object> cxfContext) {



> Allow SOAPAction to be overwritten via RequestContext property
> --------------------------------------------------------------
>                 Key: CXF-6732
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 2.7.18, 3.2.0
>            Reporter: Tomohisa Igarashi
>            Assignee: Freeman Fang
>             Fix For: 3.1.5, 3.0.8, 3.2.0
> SoapPreProtocolOutInterceptor sets SOAPAction into PROTOCOL_HEADERS only when it's not
yet set here:
> If user reuses the client like Dispatch instance, the PROTOCOL_HEADERS is carried over
multiple invocations including SOAPAction specified for the first invocation, thus the ""
property is ignored afterward. IMO the "" standard property
should precede existing SOAPAction in PROTOCOL_HEADERS.

This message was sent by Atlassian JIRA

View raw message