There is an unit test in Camel-CXF.
Here is the spring configuration file[1] of the camel route.
[1]https://github.com/apache/camel/blob/master/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wssecurity/camel/camel-context.xml
--
Willem Jiang
Red Hat, Inc.
Web: http://ww
Hi,
The requestor doesnt send any additional headers to the request, So I have
to route the messages based on the SoapAction. ( Payload format)
But when I send a request, Soap UI returns this error.
http://schemas.xmlsoap.org/soap/envelope/";>
soap:Server
The given
This issue is continued here:
http://camel.465427.n5.nabble.com/Route-based-on-Soap-Action-td5749316.html
--
View this message in context:
http://camel.465427.n5.nabble.com/CBR-Choice-Exceptions-tp5749264p5749317.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hey Reji,
I just could catch the exception after enabling this flag at the context
level: handleFault="true"
By the way, this is my choice:
${in.header.SOAPAction} ==
'submit'
router reaches this place perfectly, but it through this soap fault:
Do you want to start/stop routes when camel app comes up or decide at runtime
when to stop the route ?
You can use JMX to stop a specific route when app is up and running.
Regards
Ravi
-Original Message-
From: chaij [mailto:jin.c...@indigoarc.com]
Sent: Tuesday, March 25, 2014 10:54 A
Is it possible to enable/disable camel route based on external properties?
For example, if I want to enable/disable a feature. I can create an external
property file. At deployment time, by change the property value, I can
control the camel route to support the change.
Something like a "if" state
Dan - I am trying to use the transformation feature...
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:cmp="http://cmp.vba/cmp";
xmlns:edoc="http://cmp.vba/external/eDocumentServiceProxy/";>
cid:12
I added the following in camel-contex
Dan - This is what I have. This is a CXF endpoint used by a proxy CXF
endpoint.
IN
Some message header in camel could be used, such as the operation name and
operation namespace, these header are useful of camel-cxf to setup right
operation information for the client invocation.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (
This error is occurring from the action checking. Double check your actions
on your Wss4jInInterceptor configuration.
In particular, should the UsernameToken be there? I don’t think a service
would send BACK a username token.
Dan
On Mar 24, 2014, at 10:39 PM, chaij wrote:
> Dan - T
Willem - Understand that Camel will not copy the in headers to out headers.
But the real question is: Does CXF endpoint really need them? If it has the
SOAPMessage, shouldn't that be enough?
Thanks!
Jin
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-CXF-Proxy-with-WS-
Dan - This is the exception I got if I use the default format which should be
POJO.
org.apache.cxf.binding.soap.SoapFault: An error was discovered processing
the header
at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.createSoapFault(WSS4JInInterceptor.java:788)[162:org.apache.cxf.c
On Mar 24, 2014, at 9:52 PM, chaij wrote:
> So I should do exchange.getOut().setBody(soapMessage) and leave the
> exchange.getIn().getHeaders() behind since it has a lot of other information
> which should not be relevant?
>
> I saw you added convertBody to String for SOAPMessage. It would be r
If you put the message body into out message, you need to copy the in message
headers to the out message header at the same time.
camel-cxf cannot take the message headers from the in message and message
body from the out message.
--
View this message in context:
http://camel.465427.n5.nabble.c
Dan - I need to use WSS4J interceptors to add security to CXF.
If I stay with POJO, I got a security header related exception. I think
others have similar issue. I can reproduce the problem by switching back if
you want to know the exact details.
It would be great if I can work on POJO. SOAPMessa
So I should do exchange.getOut().setBody(soapMessage) and leave the
exchange.getIn().getHeaders() behind since it has a lot of other information
which should not be relevant?
I saw you added convertBody to String for SOAPMessage. It would be really
nice if there is one to do the reverse. Take the
On Mar 24, 2014, at 11:00 AM, chaij wrote:
> Also, everything works fine with POJO data format which I was using before. I
> was able to send request and get response from soapUI mockup service.
>
> Now, since I need to add security, I have to switch to CXF_MESSAGE format.
> Things doesn't work
Is it JUST the namespace that needs to be changed? One option would be to have
CXF do that while reading or writing messages by use CXF’s transform feature:
https://cwiki.apache.org/confluence/display/CXF20DOC/TransformationFeature
It’s primary purpose was to handle Namespace mapping and minor
I guess you didn’t setup the message body rightly.
That could explain why the soap body is empty.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On March 24, 2014
Hi,
I think you need to build the soap envelop yourself before send the request
message (without security headers)in the camel route, then let the CXF security
interceptor do the other work for you when routing the message out to the camel
route.
--
Willem Jiang
Red Hat, Inc.
Web: http://ww
Thank you it is working!
From: Andrew Thorburn [via Camel]
[mailto:ml-node+s465427n5749298...@n5.nabble.com]
Sent: Monday, March 24, 2014 4:20 PM
To: Lydie Prevost
Subject: Re: sql component and delay
It should be "&consumer.delay=5000". Since you're using XML, you'll
need to escape the & charac
It should be "&consumer.delay=5000". Since you're using XML, you'll
need to escape the & character.
- Andrew
On Tue, Mar 25, 2014 at 12:08 PM, Lydie wrote:
> When I do that:
>
>
> uri="sql:{{sql.oracle.selectPull2}}?consumer.onConsume={{sql.oracle.markProcessed}}&consumer
When I do that:
I get the following error:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 78
in XML document from class path resource [META-INF/spring/camel-context.xml] is
invalid; nested exception is org.xml.sax.SAXParseException; lineNumber:
On Mon, Mar 24, 2014 at 3:27 PM, Nair, Madhu wrote:
> Thanks for the pointer. Any pointers on the best place to call this bean? I
> am new to Camel and trying to see at what point this system property should
> be set.
>
Yeah you need to call this bean before Camel startup. So if you use
spring
Hi
The Java DSL is just java code, so you can call other methods to
append to the route model, eg ProcessorDefintion etc.
But you will likely have to break your route. Something a long the lines of
// define route as a foo variable
ProcessorDef foo = from().to();
// call method with foo
appendS
Hi
You need to set a header with the file name. So you can maybe have a
2nd method on the bean that creates the file name you want to use.
The header key is Exchange.FILE_NAME
from X
to bean
.setHeander(Exchange.FILE_NAME, bean("createFile", "createFileName"))
to ftp
See more details at
http://
I'm very new to camel.
I've written a bean that creates a file, now I need to send the file over
ftp.
My current thought is to return the filename as the body of the message, but
scouring the documentation and example code it seems that this is never
done.
I'd like the route to look like this
.sta
Not sure - do you have to use text() instead of node()?
And provide the xmlns of the id element?
/c:entry/c:id/text()
Jan
> -Ursprüngliche Nachricht-
> Von: sb.append [mailto:a261...@drdrb.net]
> Gesendet: Montag, 24. März 2014 17:47
> An: users@camel.apache.org
> Betreff: Re: help wit
I have a number of situations where i have different parts of a route that
repeat consistently but Id rather not create separate routes or direct
calls because I want avoid a bottleneck. If i create 50 routes concurrently
consuming off of one queue and route them all through the same direct, the
di
Took me a bit to figure out how to retrieve the FAILURE_ENDPOINT from Simple,
I didn't understand the that default value "CamelFailureEndpoint" for
FAILURE_ENDPOINT also is the key used in the properties map on the Exchange.
Probably very obvious if you know, I guess I jumped a few chapters ahead
still have no luck. xpath does not accept type parameter, so I'm using
XPathBuilder, which sets just empty string, instead of value
.split(body().tokenizeXML("entry", "entries"))
.setHeader("entry1", XPathBuilder.xpath("/c:entry/id/node()",
String.class).namespace("c", "http://www.w3.org/2005/Atom
Here is a failing test for the problem
package com.cameltest.tesxpath;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.builder.xml.Namespaces;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Test;
/
Tell Camel you want it as a String type, by passing in String.class as
a parameter to the xpath function
On Mon, Mar 24, 2014 at 5:07 PM, sb.append wrote:
> Hello,
>
> I cannot get the value of node into header. what I'm doing wrong here?
>
> http://www.w3.org/2005/Atom";>
> 123
>
>
>
>
Hello,
I cannot get the value of node into header. what I'm doing wrong here?
http://www.w3.org/2005/Atom";>
123
.split(body().tokenizeXML("entry", "entries"))
.log("${body}")
.setHeader("entry", xpath("/c:entry/id/node()").namespace("c",
"http://www.w3.org/2005/Atom";))
but header is
Okay this makes sense. Thanks for the response!
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-support-for-JMS-2-0-Shared-subscriptions-tp5748824p5749285.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-CXF-Proxy-with-WS-Security-tp5749223p5749284.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Also, everything works fine with POJO data format which I was using before. I
was able to send request and get response from soapUI mockup service.
Now, since I need to add security, I have to switch to CXF_MESSAGE format.
Things doesn't work anymore.
--
View this message in context:
http://ca
Sorry, I didn't it clear.
This is when the message leaving CXF Endpoint to the real service and before
it gets a response. I logged the message using loggingOutInterceptor. The
SOAP body is empty.
I did get a fault response saying the body element is NULL from soapUI
mockup service.
I will check
You said "When I feed the soap envelope in string format to CXF endpoint, the
SOAP body is empty when coming out the endpoint."
That might be because the web service you are invoking may not have any
response data. The empty SOAP envelop is an evidence for the same.
Can you share the wsdl of the
I don't really know what needs to done with the Camel message headers. I
couldn't find documentation on how to use CXF_MESSAGE. I think that's the
issue.
When I feed the soap envelope in string format to CXF endpoint, the SOAP
body is empty when coming out the endpoint.
To recap what I need:
pr
Hey Guru
Are you using this CBR to route based on the Web service operations? Some
thing like follows
http://camel.apache.org/schema/spring";>
${in.header.operationName} ==
'updateCustomer'
Thanks for the pointer. Any pointers on the best place to call this bean? I am
new to Camel and trying to see at what point this system property should be
set.
-Original Message-
From: Claus Ibsen [mailto:claus.ib...@gmail.com]
Sent: Saturday, March 22, 2014 3:06 AM
To: users@camel.
Hello,
Nobody used this? Please help me if you can.
Regards,
Laurentiu
On Thu, Mar 13, 2014 at 2:24 PM, Laurentiu Trica <
laurentiu.tr...@moredevs.ro> wrote:
> Hello,
>
> I'm trying to use Camel FOP component in Servicemix 4.5.3.
> I manually installed Apache XMLGraphics bundle and Commons.io,
Hello,
I've simple task to parse xml entries containing links to files. For each
entry the file should be downloaded. Is the following route a correct
approach?
from("direct:start")
.to("http://address.of.xml";)
.filter()
.xpath("entry/link")
FYI: Spring 4.x supports JMS 2.0: https://jira.spring.io/browse/SPR-8197. I
haven't yet seen any activity around JMS 2.0 in the ActiveMQ community.
On Fri, Mar 14, 2014 at 4:09 PM, Claus Ibsen wrote:
> camel-jms is using Spring JMS, so its more what spring supports out of the
> box.
>
> camel-s
Hello,
I want to use ActiveMQComponent with connection factory linked to
resource-adapter deployed on web-server. I have accessible ResourceAdapter
and ManagedConnectionFactory (with XA support) registered in JNDI.
How can I use them to avoid creation of new connection factory for
ActiveMQCompone
Could anybody help me with that?
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-AWS-DDB-scan-query-tp5749255p5749271.html
Sent from the Camel - Users mailing list archive at Nabble.com.
47 matches
Mail list logo