Hi

See this FAQ about getIn vs getOut
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html

Basically check with hasOut() before calling getOut().

On Tue, Jan 24, 2012 at 4:25 PM, sram <[email protected]> wrote:
> With the help of this forum I was able to overcome my previous issue related
> to external webservice invocation. However, as a continuation to the same
> problem when a successful response is returned by this external endpoint, I
> encounter this error in my camel context.
>
> I try to Message out = exchange.getOut(); but body is null. Should i not get
> my response in OUT of bean:myOutProcessor ? When I directly invoke this
> service without camel route, I can get a response for the same payload. Any
> pointers to resolve is highly appreciated.
>
>
> <camelContext trace="true" xmlns="http://camel.apache.org/schema/spring";>
>
>                <route>
>                        <from uri="cxf:bean:myService" />
>                        <setExchangePattern pattern="InOut"/>
>                        <to uri="bean:myDelegate" />
>                <to
> uri="http://d026ats002268:19080/testServiceClientsWAR/services/myService?throwExceptionOnFailure=false;bridgeEndpoint=true"/>
>                        <to uri="bean:myOutProcessor"/>
>                </route>
>        </camelContext>
>
>
> =============  Exception ============
> 0 PhaseIntercep W org.apache.cxf.phase.PhaseInterceptorChain
> doDefaultLogging Interceptor for
> {http://services.reporting.mycomp.com/reporting/services}ReportService has
> thrown exception, unwinding now
>                                 org.apache.cxf.binding.soap.SoapFault:
> "http://services.reporting.mycomp.com/reporting/services";, the namespace on
> the "IReportServiceExecuteRequest" element, is not a valid SOAP version.
>        at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.readVersion(ReadHeadersInterceptor.java:115)
>        at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:141)
>        at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:60)
>        at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
>        at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)
>        at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
>        at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
>        at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)
>        at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:126)
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:164)
>        at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1152)
>        at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
>        at
> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
>        at
> com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
>        at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
>        at
> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
>        at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
>        at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
>        at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
>        at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
>        at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:270)
>        at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
>        at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
>        at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
>        at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
>        at
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
>        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
>        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
>        at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
>        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
>        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/the-namespace-on-the-IReportServiceExecuteRequest-element-is-not-a-valid-SOAP-version-tp5284067p5284067.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to