camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet" <gno...@gmail.com>
Subject Re: JBI Wrapper
Date Fri, 12 Sep 2008 06:05:49 GMT
If you use servicemix-http soap consumer, you can have a non wrapped
soap body as the content:
   <http:soap-consumer useJbiWrapper="false" ... />

On Fri, Sep 12, 2008 at 12:40 AM, raulvk <raul.kripalani@atosorigin.com> wrote:
>
> Correct, Guillaume. We would be back to square one...
>
> Either way there is one envelope to get rid of...
>
>
>
> gnodet wrote:
>>
>> AFAIK, it will send the full soap envelope, not the body only.
>>
>> On Thu, Sep 11, 2008 at 8:44 PM, Gert Vanthienen
>> <gert.vanthienen@skynet.be> wrote:
>>> Raul,
>>>
>>> If you are using a recent version of ServiceMix, you can set the
>>> attribute
>>> useJBIWrapper="false" on the servicemix-cxf-bc consumer endpoint.  This
>>> will
>>> send the plain XML message into the ESB, without the JBI-specific wrapper
>>> elements around it.
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>> raulvk wrote:
>>>>
>>>> Hi,
>>>>
>>>> I am using Camel to control the flow of validation, transformation and
>>>> routing tasks that are applied to messages entering via ServiceMix CXF's
>>>> Binding Component. The CXF consumer endpoint sends the message
>>>> straightaway
>>>> to Camel.
>>>>
>>>> When validating the incoming message, I realized that it is surrounded
>>>> by
>>>> the <jbi:message> wrapper.
>>>> How can I get rid of it so as to send the ACTUAL XML message to Camel's
>>>> validator?
>>>>
>>>> I have tried the following:
>>>>
>>>>  -   .setBody().xpath("//jbi:message/jbi:part/can:IncomingMessage",
>>>> m).to("validator:file:///<schemaLocation>")
>>>>
>>>>    AND
>>>>  .   .transform().xpath("//jbi:message/jbi:part/can:IncomingMessage",
>>>> m).to("validator:file:///<schemaLocation>")
>>>>
>>>> m is bound to a HashMap containing the NameSpace mappings.
>>>>
>>>> However, the result is always an empty XML Body, which provokes an
>>>> exception
>>>> at the Validator.
>>>>
>>>> Is there an easy way of EXTRACTING the XML payload?
>>>>
>>>> Thank you.
>>>>
>>>
>>>
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>>
>>
>
> --
> View this message in context: http://www.nabble.com/JBI-Wrapper-tp19439139s22882p19446250.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



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

Mime
View raw message