Details
-
Bug
-
Resolution: Done
-
Major
-
1.3.6.0-fuse
-
None
-
None
Description
Consider the following camel config:
camel-context.xml
<cxf:cxfEndpoint id="my-cxf-bean" address="http://localhost:9000/CamelCXF" wsdlURL="./src/main/resources/META-INF/spring/person.wsdl" endpointName="s:soap" serviceName="s:PersonService" xmlns:s="http://servicemix.apache.org/samples/wsdl-first" /> <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="cxf:bean:my-cxf-bean?dataFormat=PAYLOAD"/> <to uri="log:DEV-927Logger" /> </route> </camelContext>
This fails to be processed with the following exception at runtime when a soap message is received:
02-Jun-2008 15:17:11 org.apache.camel.component.cxf.interceptors.AbstractMessageInInterceptor createDOMMessage
INFO: AbstractMessageInInterceptor Converting Stax Stream to DOM
02-Jun-2008 15:17:11 org.apache.camel.component.cxf.interceptors.AbstractMessageInInterceptor handleMessage
INFO: AbstractRoutingMessageInInterceptor Infer BindingOperationInfo.
02-Jun-2008 15:17:11 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not read request. Operation {http://schemas.xmlsoap.org/soap/envelope/}Envelope is unknown
.
at org.apache.camel.component.cxf.interceptors.AbstractMessageInInterceptor.handleMessage(AbstractMessageInInterceptor.jav
a:103)
at org.apache.camel.component.cxf.interceptors.DOMInInterceptor.handleMessage(DOMInInterceptor.java:49)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:77)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:280)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:254)
at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:62)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
02-Jun-2008 15:17:11 org.apache.camel.component.cxf.interceptors.FaultOutInterceptor handleMessage
INFO: FaultOutInterceptor Creating SoapFault
Setting dataFormat=MESSAGE works fine but does not remove the SOAP envelope from the message.