Hi,
 I found below exception when working with cxf component.My usecase is like
below.

   Stand lone CXF Client ----> ServiceMix CXF Consumer ---> Servicemix CXF
Provider ---> Calls Third Party webservice (Generated using CXF).

 I have generated Third Party service WSDL using jav2wsdl tool provided by
cxf.It will be referred in servicemix cxf component.

   My configuration is like below :

    <beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"; 
        xmlns:picf="http://planetsoft.com/picf2";
        xmlns:tns="http://order.demo/"; 
        xmlns:person="http://servicemix.apache.org/samples/wsdl-first";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
http://servicemix.apache.org/schema/servicemix-cxfbc-2010.01.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd";>
 
  consumer : 
           <cxfbc:consumer wsdl="classpath:service.wsdl"
                    targetService="tns:OrderProcessImplService"
                      targetInterface="tns:OrderProcess"
                                           targetEndpoint="OrderProcessPort"
                                          delegateToJaas="false"
                                          x509="true">

provider:

    <cxfbc:provider
             wsdl="classpath:service.wsdl"
        locationURI="http://localhost:8080/orderapp/OrderProcess?wsdl";
                  service="tns:OrderProcessImplService"
        endpoint="OrderProcessPort" 
                useJBIWrapper="false"
                useSOAPEnvelope="true">
Exception:
-------
AttachmentInInterceptor]
  post-stream [StaxInInterceptor]
  read [ReadHeadersInterceptor, StartBodyInterceptor]
  pre-protocol [MustUnderstandInterceptor]
  pre-invoke [JbiInWsdl1Interceptor, PolicyVerificationInInterceptor]

19:27:18,046 | DEBUG | rovider-thread-2 | PhaseInterceptorChain            | 
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.interceptor.AttachmentInInterceptor@fdeb35
19:27:18,046 | DEBUG | rovider-thread-2 | PhaseInterceptorChain            | 
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.interceptor.StaxInInterceptor@1394dcd
19:27:18,046 | DEBUG | rovider-thread-2 | PhaseInterceptorChain            | 
-  -  | Invoking handleMessage on interceptor
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@18aa9d8
19:27:18,046 | DEBUG | rovider-thread-2 | PhaseInterceptorChain            | 
-  -  | Invoking handleFault on interceptor
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@18aa9d8
19:27:18,046 | DEBUG | rovider-thread-2 | PhaseInterceptorChain            | 
-  -  | Invoking handleFault on interceptor
org.apache.cxf.interceptor.StaxInInterceptor@1394dcd
19:27:18,046 | DEBUG | rovider-thread-2 | PhaseInterceptorChain            | 
-  -  | Invoking handleFault on interceptor
org.apache.cxf.interceptor.AttachmentInInterceptor@fdeb35
19:27:18,046 | DEBUG | rovider-thread-2 | PhaseInterceptorChain            | 
-  -  | Invoking handleFault on interceptor
org.apache.cxf.ws.policy.PolicyInInterceptor@7c94ad
19:27:18,046 | WARN  | rovider-thread-2 | PhaseInterceptorChain            | 
-  -  | Interceptor for {http://order.demo/}OrderProcessImplService has
thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/";,
the namespace on the "definitions" element, is not a valid SOAP version.
        at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:131)[116:org.apache.cxf.bundle:2.3.2]
        at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:60)[116:org.apache.cxf.bundle:2.3.2]
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)[116:org.apache.cxf.bundle:2.3.2]
        at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:166)[156:servicemix-cxf-bc:2011.01.0]
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2335)[116:org.apache.cxf.bundle:2.3.2]
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2193)[116:org.apache.cxf.bundle:2.3.2]
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2037)[116:org.apache.cxf.bundle:2.3.2]
        at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)[116:org.apache.cxf.bundle:2.3.2]
        at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188)[116:org.apache.cxf.bundle:2.3.2]
        at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:260)[156:servicemix-cxf-bc:2011.01.0]
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:651)[121:servicemix-common:2011.01.0]
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:606)[121:servicemix-common:2011.01.0]
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:501)[121:servicemix-common:2011.01.0]
        at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:370)[121:servicemix-common:2011.01.0]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_24]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_24]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_24]
19:27:18,046 | DEBUG | rderProcess?wsdl | log                              |
143 - org.eclipse.jetty.util - 7.2.2.v20101205 | RESPONSE
/orderapp/OrderProcess  200
19:27:18,046 | DEBUG | rovider-thread-2 | NMR                              |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel
org.apache.servicemix.nmr.core.ChannelImpl@8b760b dispatching exchange: [
  id:        dd574594-97e8-4fd2-ae4a-109c0f47c77e
  mep:       InOut
  status:    Error
  role:      Provider
  target:    PropertyMatchingReference[{ENDPOINT_NAME=OrderProcessPort,
SERVICE_NAME={http://order.demo/}OrderProcessImplService}]
  operation: {http://order.demo/}processOrder
  properties: [
      javax.jbi.servicedesc.ServiceEndpoint =
org.apache.servicemix.jbi.runtime.impl.EndpointImpl@e71b96
      org.apache.servicemix.senderEndpoint =
{http://order.demo/}OrderProcessImplService:OrderProcessImplPort
      javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOutImpl@a71b0c
      javax.jbi.messaging.sendSync = <null>
      javax.jbi.InterfaceName = {http://order.demo/}OrderProcess
      javax.jbi.transaction.jta = <null>
      javax.jbi.ServiceEndpoint =
org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@e0c7bb
      org.apache.servicemix.correlationId =
dd574594-97e8-4fd2-ae4a-109c0f47c77e
      javax.jbi.ServiceName = {http://order.demo/}OrderProcessImplService
  ]
  error: [
    org.apache.cxf.binding.soap.SoapFault:
"http://schemas.xmlsoap.org/wsdl/";, the namespace on the "definitions"
element, is not a valid SOAP version.
      at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:131)
      at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:60)
      at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)
      at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:166)
      at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2335)
      at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2193)
      at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2037)
      at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
      at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188)
      at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:260)
      at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:651)
      at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:606)
      at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:501)
      at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:370)
      at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
  ]
]

19:27:18,046 | DEBUG | rovider-thread-2 | NMR                              |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel
org.apache.servicemix.nmr.core.ChannelImpl@8b760b delivering exchange: [
  id:        dd574594-97e8-4fd2-ae4a-109c0f47c77e
  mep:       InOut
  status:    Error
  role:      Provider
  target:    PropertyMatchingReference[{ENDPOINT_NAME=OrderProcessPort,
SERVICE_NAME={http://order.demo/}OrderProcessImplService}]
  operation: {http://order.demo/}processOrder
  properties: [
      javax.jbi.servicedesc.ServiceEndpoint =
org.apache.servicemix.jbi.runtime.impl.EndpointImpl@e71b96
      org.apache.servicemix.senderEndpoint =
{http://order.demo/}OrderProcessImplService:OrderProcessImplPort
      javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOutImpl@a71b0c
      javax.jbi.messaging.sendSync = <null>
      javax.jbi.InterfaceName = {http://order.demo/}OrderProcess
      javax.jbi.transaction.jta = <null>
      javax.jbi.ServiceEndpoint =
org.apache.servicemix.jbi.runtime.impl.ServiceEndpointImpl@e0c7bb
      org.apache.servicemix.correlationId =
dd574594-97e8-4fd2-ae4a-109c0f47c77e
      javax.jbi.ServiceName = {http://order.demo/}OrderProcessImplService
  ]
  error: [
    org.apache.cxf.binding.soap.SoapFault:
"http://schemas.xmlsoap.org/wsdl/";, the namespace on the "definitions"
element, is not a valid SOAP version.
      at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:131)
      at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:60)
      at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)
      at
org.apache.servicemix.cxfbc.CxfBcProviderMessageObserver.onMessage(CxfBcProviderMessageObserver.java:166)
      at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2335)
      at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2193)
      at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2037)
      at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
      at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188)
      at
org.apache.servicemix.cxfbc.CxfBcProvider.process(CxfBcProvider.java:260)
      at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:651)
      at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:606)
      at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:501)
      at
org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:370)
      at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
  ]
]

19:27:18,046 | DEBUG | onsumer-thread-3 | CxfBcComponent                   |
121 - servicemix-common - 2011.01.0 | Received exchange: status: Error,
role: consumer
19:27:18,046 | DEBUG | onsumer-thread-3 | CxfBcComponent                   |
121 - servicemix-common - 2011.01.0 | Retrieved correlation id:
dd574594-97e8-4fd2-ae4a-109c0f47c77e
19:27:18,046 | DEBUG | qtp8037109-148   | log                              |
143 - org.eclipse.jetty.util - 7.2.2.v20101205 | async request
19:27:18,046 | DEBUG | app/OrderProcess | log                              |
143 - org.eclipse.jetty.util - 7.2.2.v20101205 | REQUEST
/orderapp/OrderProcess on
org.eclipse.jetty.server.nio.SelectChannelConnector$3@cb21f7
19:27:18,046 | DEBUG | app/OrderProcess | JettyHTTPDestination             | 
-  -  | Service http request on 

Here attached wsdl,xbean.xml,error trace for your reference.Please suggest
me is there any issue with my wsdl generation.Using the same wsdl it worked
fine with servicemix bc provider alone to call third party service
http://servicemix.396122.n5.nabble.com/file/n4346598/config.zip config.zip 

Regards,
Praveen Chakinala

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/CXF-BC-the-namespace-on-the-definitions-element-is-not-a-valid-SOAP-version-tp4346598p4346598.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to