Actually, if you use the new endpoints from servicemix-http can use the jbi
wrapper.
Using something like


<http:soap-consumer useJbiWrapper="true" ...


On Jan 18, 2008 12:36 PM, Jeff Yu <[EMAIL PROTECTED]> wrote:

> Right now, only cxf-bc is able to connect cxf-se, the http-bc can't
> connect
> to the cxf-se right now.
> cxf-se only accept the formal JBI message (with JBI message header) as
> specified in the JBI spec.
>
> On Jan 18, 2008 7:15 PM, slohr <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi,
> >
> > i tried to invoke a cxf-se service through the http-bc, but i only got
> an
> > "error: org.apache.cxf.interceptor.Fault: no jbi message element". It
> > should
> > be possible to connect the cxf-se to the http-bc or am I wrong?
> >
> > The cxf-se service in combination with the cxf-bx is doing fine.
> >
> > Thank you.
> > Stefan
> >
> >
> >
> >
> [Log]----------------------------------------------------------------------
> >
> > DEBUG - JettyContextManager            - Dispatching job:
> > [EMAIL PROTECTED],io=0,w=true,b=false|false]
> > DEBUG - ConsumerProcessor              - Receiving HTTP request: POST
> > /example/
> > HTTP/1.1
> > Content-Type: application/x-www-form-urlencoded
> > User-Agent: Eclipse HttpClient/1.1.1
> > Host: 0.0.0.0:8080
> > Content-Length: 331
> >
> >
> > DEBUG - CxfSeComponent                 - Querying service description
> for
> > ServiceEndpoint[service={
> >
> http://servicemix.csc.com/exampleCXFService}ExampleCXFService,endpoint=ExampleCXFServicePort<http://servicemix.csc.com/exampleCXFService%7DExampleCXFService,endpoint=ExampleCXFServicePort>
> <
> http://servicemix.csc.com/exampleCXFService%7DExampleCXFService,endpoint=ExampleCXFServicePort
> >
> > ]
> > DEBUG - CxfSeComponent                 - No description found for
> > {
> >
> http://servicemix.csc.com/exampleCXFService}ExampleCXFService:ExampleCXFServicePort<http://servicemix.csc.com/exampleCXFService%7DExampleCXFService:ExampleCXFServicePort>
> <
> http://servicemix.csc.com/exampleCXFService%7DExampleCXFService:ExampleCXFServicePort
> >
> > DEBUG - HttpComponent                  - Created correlation id:
> > ID:20.49.77.98-1178c6920f2-11:8
> > DEBUG - DeliveryChannelImpl            - Send
> > ID:20.49.77.98-1178c6920f2-11:8 in DeliveryChannel{servicemix-http}
> > DEBUG - SedaFlow                       - Called Flow send
> > DEBUG - ConsumerProcessor              - Suspending continuation for
> > exchange: ID:20.49.77.98-1178c6920f2-11:8
> > DEBUG - SedaQueue                      -
> > [EMAIL PROTECTED] dequeued
> > exchange: InOut[
> >  id: ID:20.49.77.98-1178c6920f2-11:8
> >  status: Active
> >  role: provider
> >  interface:
> > {http://servicemix.csc.com/exampleCXFService}ExampleCXFServicePortType<http://servicemix.csc.com/exampleCXFService%7DExampleCXFServicePortType>
> <http://servicemix.csc.com/exampleCXFService%7DExampleCXFServicePortType>
> >  service: 
> > {http://servicemix.csc.com/exampleCXFService}ExampleCXFService<http://servicemix.csc.com/exampleCXFService%7DExampleCXFService>
> <http://servicemix.csc.com/exampleCXFService%7DExampleCXFService>
> >  endpoint: ExampleCXFServicePort
> >  operation: 
> > {http://servicemix.csc.com/exampleCXFService}sayHello<http://servicemix.csc.com/exampleCXFService%7DsayHello>
> <http://servicemix.csc.com/exampleCXFService%7DsayHello>
> >  in: <?xml version="1.0" encoding="UTF-8"?><ex:sayHello
> > xmlns:ex="http://servicemix.csc.com/exampleCXFService";
> > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
> >      <ex:sayHelloRequest>
> >        <name>Bob</name>
> >      </ex:sayHelloRequest>
> >    </ex:sayHello>
> > ]
> > DEBUG - CxfSeComponent                 - Received exchange: status:
> > Active,
> > role: provider
> > DEBUG - CxfSeComponent                 - Retrieved correlation id:
> > ID:20.49.77.98-1178c6920f2-11:818.01.2008 11:59:25
> > org.apache.cxf.transport.jbi.JBITransportFactory setDeliveryChannel
> > INFO: configuring DeliveryChannel:
> > [EMAIL PROTECTED]
> > 11:59:25 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> > INFO: Interceptor has thrown exception, unwinding
> > noworg.apache.cxf.interceptor.Fault: no jbi message element
> >        at
> >
> >
> org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage
> > (JBIWrapperInInterceptor.java:96)
> >        at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> > PhaseInterceptorChain.java:207)
> >        at
> > org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> > ChainInitiationObserver.java:73)
> >        at
> > org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(
> > JBIDispatcherUtil.java:148)
> >        at
> > org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java
> :187)
> >        at
> > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(
> > AsyncBaseLifeCycle.java:538)
> >        at
> > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(
> > AsyncBaseLifeCycle.java:490)
> >        at
> > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(
> > BaseLifeCycle.java:46)
> >        at
> > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(
> > DeliveryChannelImpl.java:610)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(
> > AbstractFlow.java:170)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
> > :167)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
> > :134)
> >        at
> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> > ThreadPoolExecutor.java:885)
> >        at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java
> > :907)
> >        at java.lang.Thread.run(Thread.java:619)
> > DEBUG - DeliveryChannelImpl            - Send
> > ID:20.49.77.98-1178c6920f2-11:8 in DeliveryChannel{servicemix-cxf-se}
> > DEBUG - SedaFlow                       - Called Flow send
> > DEBUG - SedaQueue                      -
> > [EMAIL PROTECTED] dequeued
> > exchange: InOut[
> >  id: ID:20.49.77.98-1178c6920f2-11:8
> >  status: Error
> >  role: consumer
> >  interface:
> > {http://servicemix.csc.com/exampleCXFService}ExampleCXFServicePortType<http://servicemix.csc.com/exampleCXFService%7DExampleCXFServicePortType>
> <http://servicemix.csc.com/exampleCXFService%7DExampleCXFServicePortType>
> >  service: 
> > {http://servicemix.csc.com/exampleCXFService}ExampleCXFService<http://servicemix.csc.com/exampleCXFService%7DExampleCXFService>
> <http://servicemix.csc.com/exampleCXFService%7DExampleCXFService>
> >  endpoint: ExampleCXFServicePort
> >  operation: 
> > {http://servicemix.csc.com/exampleCXFService}sayHello<http://servicemix.csc.com/exampleCXFService%7DsayHello>
> <http://servicemix.csc.com/exampleCXFService%7DsayHello>
> >  in: <?xml version="1.0" encoding="UTF-8"?><ex:sayHello
> > xmlns:ex="http://servicemix.csc.com/exampleCXFService";
> > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
> >      <ex:sayHelloRequest>
> >        <name>Bob</name>
> >      </ex:sayHelloRequest>
> >    </ex:sayHello>
> >  error: org.apache.cxf.interceptor.Fault: no jbi message element
> > ]
> > DEBUG - HttpComponent                  - Received exchange: status:
> Error,
> > role: consumer
> > DEBUG - HttpComponent                  - Retrieved correlation id:
> > ID:20.49.77.98-1178c6920f2-11:8
> > DEBUG - ConsumerProcessor              - Resuming continuation for
> > exchange:
> > ID:20.49.77.98-1178c6920f2-11:8
> > DEBUG - JettyContextManager            - Dispatching job:
> > [EMAIL PROTECTED],pending,resumed
> > DEBUG - ConsumerProcessor              - Receiving HTTP request: POST
> > /example/
> > HTTP/1.1
> > Content-Type: application/x-www-form-urlencoded
> > User-Agent: Eclipse HttpClient/1.1.1
> > Host: 0.0.0.0:8080
> > Content-Length: 331
> >
> >
> > WARN  - jetty                          - Nested in
> > javax.servlet.ServletException: Failed to process request:
> > java.lang.Exception: org.apache.cxf.interceptor.Fault: no jbi message
> > element:
> > java.lang.Exception: org.apache.cxf.interceptor.Fault: no jbi message
> > element
> >        at
> > org.apache.servicemix.http.processors.ConsumerProcessor.process(
> > ConsumerProcessor.java:194)
> >        at
> > org.apache.servicemix.http.HttpBridgeServlet.doPost(
> HttpBridgeServlet.java
> > :71)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> >        at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> >        at
> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> >        at
> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> >        at
> > org.mortbay.jetty.handler.ContextHandlerCollection.handle(
> > ContextHandlerCollection.java:211)
> >        at
> > org.mortbay.jetty.handler.HandlerCollection.handle(
> HandlerCollection.java
> > :114)
> >        at
> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> >        at org.mortbay.jetty.Server.handle(Server.java:313)
> >        at
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
> >        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java
> :375)
> >        at
> > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java
> > :396)
> >        at
> > org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(
> > SelectChannelConnector.java:511)
> >        at
> > org.mortbay.thread.BoundedThreadPool$PoolThread.run(
> BoundedThreadPool.java
> > :442)
> > Caused by: org.apache.cxf.interceptor.Fault: no jbi message element
> >        at
> >
> >
> org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage
> > (JBIWrapperInInterceptor.java:96)
> >        at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> > PhaseInterceptorChain.java:207)
> >        at
> > org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> > ChainInitiationObserver.java:73)
> >        at
> > org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(
> > JBIDispatcherUtil.java:148)
> >        at
> > org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java
> :187)
> >        at
> > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(
> > AsyncBaseLifeCycle.java:538)
> >        at
> > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(
> > AsyncBaseLifeCycle.java:490)
> >        at
> > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(
> > BaseLifeCycle.java:46)
> >        at
> > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(
> > DeliveryChannelImpl.java:610)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(
> > AbstractFlow.java:170)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
> > :167)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
> > :134)
> >        at
> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> > ThreadPoolExecutor.java:885)
> >        at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java
> > :907)
> >        at java.lang.Thread.run(Thread.java:619)
> > WARN  - jetty                          - /example/
> > java.lang.Exception: org.apache.cxf.interceptor.Fault: no jbi message
> > element
> >        at
> > org.apache.servicemix.http.processors.ConsumerProcessor.process(
> > ConsumerProcessor.java:194)
> >        at
> > org.apache.servicemix.http.HttpBridgeServlet.doPost(
> HttpBridgeServlet.java
> > :71)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> >        at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> >        at
> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> >        at
> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> >        at
> > org.mortbay.jetty.handler.ContextHandlerCollection.handle(
> > ContextHandlerCollection.java:211)
> >        at
> > org.mortbay.jetty.handler.HandlerCollection.handle(
> HandlerCollection.java
> > :114)
> >        at
> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> >        at org.mortbay.jetty.Server.handle(Server.java:313)
> >        at
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
> >        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java
> :375)
> >        at
> > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java
> > :396)
> >        at
> > org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(
> > SelectChannelConnector.java:511)
> >        at
> > org.mortbay.thread.BoundedThreadPool$PoolThread.run(
> BoundedThreadPool.java
> > :442)
> > Caused by: org.apache.cxf.interceptor.Fault: no jbi message element
> >        at
> >
> >
> org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage
> > (JBIWrapperInInterceptor.java:96)
> >        at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> > PhaseInterceptorChain.java:207)
> >        at
> > org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> > ChainInitiationObserver.java:73)
> >        at
> > org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(
> > JBIDispatcherUtil.java:148)
> >        at
> > org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java
> :187)
> >        at
> > org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(
> > AsyncBaseLifeCycle.java:538)
> >        at
> > org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(
> > AsyncBaseLifeCycle.java:490)
> >        at
> > org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(
> > BaseLifeCycle.java:46)
> >        at
> > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(
> > DeliveryChannelImpl.java:610)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(
> > AbstractFlow.java:170)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
> > :167)
> >        at
> > org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
> > :134)
> >        at
> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> > ThreadPoolExecutor.java:885)
> >        at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java
> > :907)
> >        at java.lang.Thread.run(Thread.java:619)
> >
> >
> >
> >
> [WSDL]------------------------------------------------------------------------------
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> > xmlns:tns="http://servicemix.csc.com/exampleCXFService";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> > name="ExampleCXFService"
> > targetNamespace="http://servicemix.csc.com/exampleCXFService";>
> >
> >        <wsdl:types>
> >                <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
> > xmlns:tns="http://servicemix.csc.com/exampleCXFService";
> > attributeFormDefault="unqualified" elementFormDefault="unqualified"
> > targetNamespace="http://servicemix.csc.com/exampleCXFService";>
> >                        <xs:element name="sayHelloRequest">
> >                                <xs:complexType>
> >                                        <xs:sequence>
> >                                                <xs:element name="name"
> > type="xs:string"/>
> >                                        </xs:sequence>
> >                                </xs:complexType>
> >                        </xs:element>
> >                        <xs:element name="sayHelloResponse">
> >                                <xs:complexType>
> >                                        <xs:sequence>
> >                                                <xs:element name="return"
> > type="xs:string"/>
> >                                        </xs:sequence>
> >                                </xs:complexType>
> >                        </xs:element>
> >                        <xs:element name="sayHelloFault">
> >                                <xs:complexType>
> >                                        <xs:sequence>
> >                                                <xs:element name="fault"
> > type="xs:string"/>
> >                                        </xs:sequence>
> >                                </xs:complexType>
> >                        </xs:element>
> >                </xs:schema>
> >        </wsdl:types>
> >
> >        <wsdl:message name="HelloRequest">
> >                <wsdl:part name="payload" element="tns:sayHelloRequest"/>
> >        </wsdl:message>
> >        <wsdl:message name="HelloResponse">
> >                <wsdl:part name="payload"
> element="tns:sayHelloResponse"/>
> >        </wsdl:message>
> >        <wsdl:message name="HelloFault">
> >                <wsdl:part name="payload" element="tns:sayHelloFault"/>
> >        </wsdl:message>
> >
> >        <wsdl:portType name="ExampleCXFServicePortType">
> >                <wsdl:operation name="sayHello">
> >                        <wsdl:input message="tns:HelloRequest"/>
> >                        <wsdl:output message="tns:HelloResponse"/>
> >                        <wsdl:fault name="Error"
> message="tns:HelloFault"/>
> >                </wsdl:operation>
> >        </wsdl:portType>
> >
> >        <wsdl:binding name="ExampleCXFServiceSOAPBinding"
> > type="tns:ExampleCXFServicePortType">
> >                <soap:binding style="document"
> > transport="http://schemas.xmlsoap.org/soap/http"/>
> >                <wsdl:operation name="sayHello">
> >                        <wsdl:input>
> >                                <soap:body use="literal"/>
> >                        </wsdl:input>
> >                        <wsdl:output>
> >                                <soap:body use="literal"/>
> >                        </wsdl:output>
> >                        <wsdl:fault name="Error">
> >                                <soap:fault name="Error" use="literal"/>
> >                        </wsdl:fault>
> >                </wsdl:operation>
> >        </wsdl:binding>
> >
> >        <wsdl:service name="ExampleCXFService">
> >                <wsdl:port name="ExampleCXFServicePort"
> > binding="tns:ExampleCXFServiceSOAPBinding">
> >                        <soap:address location="
> > http://0.0.0.0:8085/cxfexample/"/>
> >                </wsdl:port>
> >        </wsdl:service>
> > </wsdl:definitions>
> >
> >
> > [HTTP BC -
> > xbean.xml]----------------------------------------------------------
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <beans xmlns:http="http://servicemix.apache.org/http/1.0";
> >       xmlns:ex="http://servicemix.csc.com/exampleCXFService";
> >       xmlns:simple="http://servicemix.csc.com/simpleService";>
> >
> >  <http:endpoint service="ex:ExampleService"
> >                 endpoint="ExampleServicePort"
> >                 targetService="ex:ExampleCXFService"
> >                 targetEndpoint="ExampleCXFServicePort"
> >                 targetInterfaceName="ex:ExampleCXFServicePortType"
> >                 role="consumer"
> >                 locationURI="http://0.0.0.0:8080/example/";
> >                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
> >                 soap="true" />
> >
> > </beans>
> > --
> > View this message in context:
> >
> http://www.nabble.com/HTTP-%3E-CXF-SE%3A-no-jbi-message-element-tp14948085s12049p14948085.html
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Thanks
> Jeff
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to