Hi.

Thanks for the quick answer. I've been having a look at the source
code and I haven't found where Ode distinguishes between sending a
message to a SOAP endpoint or a JBI endpoint. I'm not even sure if the
ODE JBI component can send messages to SOAP endpoints or only to JBI,
but I'll try to figure that out tomorrow (I understand ODE is able to
send messages to a non-jbi Web Service, but my assumption is that
maybe this is only possible if it is not deployed in the JBI
container). I'd really appreciate if you helped me out with those two
things, because I've been looking everywhere for the answer but I
haven't found anything.

About "using" a custom adapter, does that mean there exists one
already? And in the case of "writing" the adapter, where would the
best place to put it be? As an out interceptor maybe?

Thanks again. Best regards,

Sebastian Gomez.

On 6/17/08, Alex Boisvert <[EMAIL PROTECTED]> wrote:
> Correct, Ode by default expects messages in JBI normalized form, not
> SOAP.  You may use or write a custom message adapter if you can't
> change the originating component.
>
> alex
>
> On 6/17/08, Sebastian Gomez <[EMAIL PROTECTED]> wrote:
> > Hi.
> >
> > I'm having trouble communicating Apache Ode's Jbi Component with a web
> > service deployed in ServiceMix. I need to send a SOAP message to it,
> > but I believe that when Ode notices the message is for a jbi:endpoint
> > it doesn't put the SOAP Envelope wrapper around the message. Is my
> > assumption possible?
> >
> > If not, does someone have any other idea why I can be getting the
> > following exception?
> >
> > org.apache.cxf.interceptor.Fault: Unable to create envelope from given
> > source:
> >       at
> > org.apache.cxf.jaxws.interceptors.DispatchInDatabindingInterceptor.handleMessage(DispatchInDatabindingInterceptor.java:191)
> >       at
> > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
> >       at
> > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:77)
> >       at
> > org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:148)
> >       at
> > org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:223)
> >       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:172)
> >       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:650)
> >       at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> >       at java.lang.Thread.run(Thread.java:595)
> > Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to
> > create envelope from given source:
> >       at
> > com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:114)
> >       at
> > com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:71)
> >       at
> > com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:125)
> >       at
> > org.apache.cxf.jaxws.interceptors.DispatchInDatabindingInterceptor.handleMessage(DispatchInDatabindingInterceptor.java:137)
> >       ... 14 more
> > Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to
> > create envelope from given source because the root element is not
> > named "Envelope"
> >       at
> > com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:151)
> >       at
> > com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:118)
> >       at
> > com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:104)
> >       ... 17 more
> >
> > Thanks in advance.
> >
> > Sebastian Gomez.
> >
>

Reply via email to