I will debug some more and respond later in the day. It doesn't aways
fail with an exception. Often, it just stops processing more messages and
I think that is because the javascript expression is failing to return
true. The javascript expression is what is setting the headers for
correct pagina
Which exception did you get? Can you share the stack trace?
Which Camel version do you use?
Best,
Christian
Sent from a mobile device
Am 04.12.2012 11:40 schrieb "Jason Chaffee" :
> I take that back. It worked one time, but not the next time. However, my
> hack works with every run.
>
>
>
> On
I take that back. It worked one time, but not the next time. However, my
hack works with every run.
On 12/4/12 1:50 AM, "Jason Chaffee" wrote:
>If I use String.class instead of Integer.class it works. It could be an
>issue with my javascript why the Integer.class didn¹t work.
>
>
>
>On 12/4
If I use String.class instead of Integer.class it works. It could be an
issue with my javascript why the Integer.class didn¹t work.
On 12/4/12 1:20 AM, "Jason Chaffee" wrote:
>Tried that, but for some reason it fails to give me the expected results
>as it stops processing after 18,000 records
Tried that, but for some reason it fails to give me the expected results
as it stops processing after 18,000 records whereas my "hack" finishes
correctly after 34254 records.
On 12/3/12 11:23 PM, "Christian Müller"
wrote:
>Indeed, this is clunky... ;-)
>You should be able to do
>ns.xpath("/soa
Tried that, but for some reason it fails to give me the expected results
as it stops processing after 18,000 records whereas my "hack" finishes
correctly after 34254 records.
On 12/3/12 11:19 PM, "Willem jiang" wrote:
>Hi,
>
>You should be able to set the xpath expression result like this
>.se
Indeed, this is clunky... ;-)
You should be able to do
ns.xpath("/soapenv:Envelope/soapenv:Body/ns1:getItemsResponse/ns1:out/ns1:totalRecordsAvailable",
Integer.class)
or
ns.xpath("/soapenv:Envelope/soapenv:Body/ns1:getItemsResponse/ns1:out/ns1:totalRecordsAvailable/text()",
Integer.class)
Doesn't
Hi,
You should be able to set the xpath expression result like this
.setHeader("hasMore",
ns.xpath("/soapenv:Envelope/soapenv:Body/ns1:getItemsResponse/ns1:out/ns1:hasMore/text()",
Integer.class))
The you don't need to header in you processor.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now
Currently, I am using Xpath to read some elements from the body that are
integers. Later in the process, I need to use those integers in a scripting
language to do some comparisons and arithmetic. The problem I am seeing is
that when I set the header it is a NodeList object instead of the inte