You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Jean-Baptiste Onofré <jb...@nanthrax.net> on 2008/11/03 14:46:01 UTC
SOAP error when using HTTP component in front of CXF-SE one
Hi all,
On ServiceMix 3.3, I have two SUs :
- the first one is a CXF-SE component (using a bean)
- the second one is a HTTP component in front of the CXF-SE one
In the xbean.xml of the CXF-SE component, I use <cxfse:endpoint
useJbiWrapper="false"> to avoid a communication error between the
both.
In the xbean.xml of the HTTP component, I use <http:endpoint
soap="false">, the service works but the WSDL is not complete (the
method operation are not exposed).
But, if I switch to <http:endpoint soap="true">, I have the
following error :
org.apache.cxf.binding.soap.SoapFault: "http://www.fimasys.com/fsb",
the namespace on the "vinCheck" element, is not a valid SOAP version.
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:92)
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:54)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
at
org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:156)
at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:283)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
Does anybody have any idea ?
Thanks
Regards
--
Jean-Baptiste Onofré
jb@nanthrax.net
BuildProcess/AutoDeploy Project Leader
http://buildprocess.sourceforge.net
Re: SOAP error when using HTTP component in front of CXF-SE one
Posted by Guillaume Nodet <gn...@gmail.com>.
CXF-SE expects either a JBI wrapper or a SOAP envelope.
If you want to have a better HTTP consumer, I would recommend using
either CXF-BC or <http:soap-consumer/> endpoint.
Both should work better with CXF-SE engine.
On Mon, Nov 3, 2008 at 2:46 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> Hi all,
>
> On ServiceMix 3.3, I have two SUs :
> - the first one is a CXF-SE component (using a bean)
> - the second one is a HTTP component in front of the CXF-SE one
>
> In the xbean.xml of the CXF-SE component, I use <cxfse:endpoint
> useJbiWrapper="false"> to avoid a communication error between the
> both.
>
> In the xbean.xml of the HTTP component, I use <http:endpoint
> soap="false">, the service works but the WSDL is not complete (the
> method operation are not exposed).
>
> But, if I switch to <http:endpoint soap="true">, I have the
> following error :
> org.apache.cxf.binding.soap.SoapFault: "http://www.fimasys.com/fsb",
> the namespace on the "vinCheck" element, is not a valid SOAP version.
> at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:92)
> at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:54)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
> at
> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:156)
> at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:283)
> at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
>
> Does anybody have any idea ?
>
> Thanks
> Regards
> --
> Jean-Baptiste Onofré
> jb@nanthrax.net
> BuildProcess/AutoDeploy Project Leader
> http://buildprocess.sourceforge.net
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com