How to Remove SOAPAction from request header?

Solution Verified - Updated -

Issue

  • Problem in Removing SOAPAction
  • How to Remove SOAPAction from request header?
  • We created a CXF blueprint service. Services are working fine, but if customer add attribute "SOAPAction" in the request it fails with below error -
2016-03-11 20:09:18,772 | INFO  | xy00| BlueMessageHandler               | 1236 - com.xx.fuse - 0.0.18 | SOAPAction in handler::
2016-03-11 20:09:18,788 | WARN  | xy00 | PhaseInterceptorChain            | 103 - org.apache.cxf.cxf-core - 3.0.4.redhat-620133 | Interceptor for {http://com.xx.fuse/1.0.0/service.wsdl}screen#{http://com.xx.fuse/1.0.0/service.wsdl}screenOrganizationList has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: The given SOAPAction http://com.xx.fuse/1.0.0/service.wsdl/screenOrganizationList does not match an operation.
    at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor$SoapActionInAttemptTwoInterceptor.handleMessage(SoapActionInInterceptor.java:243)[104:org.apache.cxf.cxf-rt-bindings-soap:3.0.4.redhat-620133]
    at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor$SoapActionInAttemptTwoInterceptor.handleMessage(SoapActionInInterceptor.java:221)[104:org.apache.cxf.cxf-rt-bindings-soap:3.0.4.redhat-620133]
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[103:org.apache.cxf.cxf-core:3.0.4.redhat-620133]
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[103:org.apache.cxf.cxf-core:3.0.4.redhat-620133]
    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[115:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-620133]
    at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[1286:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-620133]
    at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[1286:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-620133]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[137:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[137:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[137:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)[137:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[137:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
    at org.eclipse.jetty.server.Server.handle(Server.java:370)[137:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
    at org.eclipse.jetty.server.Abstra

Environment

  • Red Hat JBoss Fuse
    • 6.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.