Re: cxf-core 3.1.7 Validation issue with camel

2016-09-22 Thread sari.reach
Any update on this Willem?



--
View this message in context: 
http://camel.465427.n5.nabble.com/cxf-core-3-1-7-Validation-issue-with-camel-tp5787728p5787946.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Need help in processing comma seperated text file

2016-09-22 Thread raghavender.anth...@gmail.com
Thanks for the response. I would like to use Camel to read the file,
process it and generate a new CSV file to send it to a different system.

I get this file from a different system X and I need to process and
transform it to CSV file in a different format which can be understood by
system Y.

I can try to do that but the problem here is task and data are always
associated with each other. I'm not sure how to dynamically split based on
task.1 or task.2 or task.n.

My goal is to read this file and generate a new CSV file in a different
format.

Can you point me/send me sample code to split the file by task?

I do really appreciate your help.

Thank you.

On Sep 23, 2016 01:25, "DariusX [via Camel]" <
ml-node+s465427n578794...@n5.nabble.com> wrote:

It isn't clear how you want to use Camel in this picture. if it is simply
to poll for files, and if the file is not huge, a simple/naive approach
would be to read in the whole file and do all the steps you need. All as a
single Processor following the "from:file" consumer.

The the Data/Task sections always follow one another, as in your example,
you could attempt to split the file into sections that way, and handle each
split task differently, based on the "operation". It will be more complex
to code. So the question is: what would you gain by this?

--
If you reply to this email, your message will be added to the discussion
below:
http://camel.465427.n5.nabble.com/Need-help-in-processing-
comma-seperated-text-file-tp5787930p5787941.html
To unsubscribe from Need help in processing comma seperated text file, click
here

.
NAML





--
View this message in context: 
http://camel.465427.n5.nabble.com/Need-help-in-processing-comma-seperated-text-file-tp5787930p5787945.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Need help in processing comma seperated text file

2016-09-22 Thread DariusX
It isn't clear how you want to use Camel in this picture. if it is simply to
poll for files, and if the file is not huge, a simple/naive approach would
be to read in the whole file and do all the steps you need. All as a single
Processor following the "from:file" consumer. 

The the Data/Task sections always follow one another, as in your example,
you could attempt to split the file into sections that way, and handle each
split task differently, based on the "operation". It will be more complex to
code. So the question is: what would you gain by this?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Need-help-in-processing-comma-seperated-text-file-tp5787930p5787941.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Blueprint and property placeholder

2016-09-22 Thread Matt Pavlovich

update-strategy="none" will stop automatic reload of _all_ properties. There is 
not a way to indicate partial update, since all the beans are restarted when a 
configuration change occurs.


On 9/20/16 1:43 PM, dpravin wrote:

Hello All,

We have some common properties, not integration/bundle specific. Can
multiple routes/bundles refer to these property files from blueprint using
cm:property-placeholder?

I also found out that if you have set update-strategy="reload" the bundle
get restarted irrespective of the property being used by the bundle. Is this
the default behavior? Is there anything that can help avoid reload/restart
of bundle if the property is not used?

Thanks,
Pravin



--
View this message in context: 
http://camel.465427.n5.nabble.com/Blueprint-and-property-placeholder-tp5787763.html
Sent from the Camel - Users mailing list archive at Nabble.com.




RE: CxfEndpoint soap client usernametoken authentication

2016-09-22 Thread catequil
I looked at that article already.  It mainly talks about how to the digest
version, but I need to do the username plain text. Then I could not figure
out how to merge cxf-ws-security into the Camel route.  Also, I was hoping
that someone had already crossed this bridge and had a solution that was
already using Camel.  It seams that any headers I try to add manually get
stripped when using the MESSAGE DataFormat.  So I have tried using the POJO
and PAYLOAD DataFormats and then try and manipulate the header, but they are
so much more involved than to just manually adding the header as text. 
There has to be an easier and better way than going through the whole
process of creating an XML document from XML text and then adding it to the
header. It just seems such a kluge.  Any other thoughts on best practices
for doing this type of camel route accessing soap calls?



--
View this message in context: 
http://camel.465427.n5.nabble.com/CxfEndpoint-soap-client-usernametoken-authentication-tp5787910p5787939.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: Why is the set body not being returned?

2016-09-22 Thread sim085
Thanks Siano, you are right. The header has the following properties;

[code]
CamelHttpResponseCode = 302
location = http://www.google.com.mt/?gws_rd=cr=
[/code]

I now understand; the correct body is being sent back to the browser but
without removing the headers the browser sees the 302 status and redirects
to the given location.







--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-is-the-set-body-not-being-returned-tp5787905p5787938.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Convert Flat File to XML using a XSD Schema

2016-09-22 Thread Brad Johnson
Specifically see the section in their documentation:

http://www.beanio.org/2.0/docs/reference/index.html#MappingXmlStreams

On Thu, Sep 22, 2016 at 7:06 AM, Vitalii Tymchyshyn  wrote:

> Try camel-beanio.
>
> Ср, 21 вер. 2016 10:04 користувач Daniel P22  пише:
>
> > Hi, I want to know if is possible convert a Flat File to XML using a XSD
> > Schema.I'm a Biztalk Developer, and I want something similar like Flat
> File
> > Disassembler.The Flat File Dissamsembler tool, takes a Flat File and
> > transforms to XML, based on a XSD Schema. In the Schema are defined the
> > positional flat of the file.I read about bindy a jaxb, but a dont find
> > anything usefulThanks
> >
> >
> >
> > --
> > View this message in context:
> > http://camel.465427.n5.nabble.com/Convert-Flat-File-to-XML-
> using-a-XSD-Schema-tp5787902.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: Convert Flat File to XML using a XSD Schema

2016-09-22 Thread Vitalii Tymchyshyn
Try camel-beanio.

Ср, 21 вер. 2016 10:04 користувач Daniel P22  пише:

> Hi, I want to know if is possible convert a Flat File to XML using a XSD
> Schema.I'm a Biztalk Developer, and I want something similar like Flat File
> Disassembler.The Flat File Dissamsembler tool, takes a Flat File and
> transforms to XML, based on a XSD Schema. In the Schema are defined the
> positional flat of the file.I read about bindy a jaxb, but a dont find
> anything usefulThanks
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Convert-Flat-File-to-XML-using-a-XSD-Schema-tp5787902.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


RE: CxfEndpoint soap client usernametoken authentication

2016-09-22 Thread Siano, Stephan
You probably should have a look at
http://cxf.apache.org/docs/ws-security.html 

Best regards
Stephan

-Original Message-
From: catequil [mailto:brat...@yahoo.com] 
Sent: Donnerstag, 22. September 2016 00:55
To: users@camel.apache.org
Subject: CxfEndpoint soap client usernametoken authentication

I am trying to access a soap service that requires that I athenticate with a
usernametoken in the security header.  Example desired outcome:



I can get the soap envelope part right with body, but the header with
security header alludes me.
Does anyone have a best practices for doing this in Camel?

Camel route below:


camel-config.xml below:





--
View this message in context: 
http://camel.465427.n5.nabble.com/CxfEndpoint-soap-client-usernametoken-authentication-tp5787910.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: Why is the set body not being returned?

2016-09-22 Thread Siano, Stephan
Hi,

You probably should try to log the headers before you remove them. Maybe there 
is some redirect header in the response from google (and your browser follows 
that overwriting your OK response).

Best regards
Stephan

-Original Message-
From: sim085 [mailto:sim...@hotmail.com] 
Sent: Donnerstag, 22. September 2016 13:35
To: users@camel.apache.org
Subject: Re: Why is the set body not being returned?

Hello again. It seems that it is something in the headers. I have added
".removeHeaders("*")" to the chain and now jetty is correctly returning the
set message through the "transform" call. 

i.e. this works - 

[code]
from("jetty:http://localhost:8080;)
.transform(constant(""))
.setHeader(Exchange.HTTP_METHOD, constant("GET"))
.to("jetty:http://www.google.com; + 
"?bridgeEndpoint=true" + 
"=false")
.transform(constant("OK"))
.log("THE BODY IS ${body}")
.removeHeaders("*");
[/code]

I saw the code of the "transform" method and I saw how this seems to make a
copy of the old message and then update the body. This is why I tried to
clear the headers.

So is this normal?




--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-is-the-set-body-not-being-returned-tp5787905p5787931.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Why is the set body not being returned?

2016-09-22 Thread sim085
Hello again. It seems that it is something in the headers. I have added
".removeHeaders("*")" to the chain and now jetty is correctly returning the
set message through the "transform" call. 

i.e. this works - 

[code]
from("jetty:http://localhost:8080;)
.transform(constant(""))
.setHeader(Exchange.HTTP_METHOD, constant("GET"))
.to("jetty:http://www.google.com; + 
"?bridgeEndpoint=true" + 
"=false")
.transform(constant("OK"))
.log("THE BODY IS ${body}")
.removeHeaders("*");
[/code]

I saw the code of the "transform" method and I saw how this seems to make a
copy of the old message and then update the body. This is why I tried to
clear the headers.

So is this normal?




--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-is-the-set-body-not-being-returned-tp5787905p5787931.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Need help in processing comma seperated text file

2016-09-22 Thread raghavender.anth...@gmail.com
Hello Experts,

I'm a new bee to the Camel technology and have the following requirement.
Can someone help me with how to go about it.

*P.S. I've gone through CSV data format, BeanIO and Bindy implementations of
Camel and felt that they can't accommodate my requirement, correct me if am
wrong here :-)*

Requirement:

I've a text file that has got the below format:

[Runtime]
Date=ASAP
Time=
AllowErrors=FALSE

[Task.1]
Server=Item Master
Module=ItemPOSIdentity
Operation=addupdate

[Data.1]
ItemPOSIdentity,11108,,40087320,UPC
ItemPOSIdentity,11108,,40087337,UPC

[Task.2]
Server=Item Master
Module=ItemPOSIdentity
Operation=delete

[Data.2]
ItemPOSIdentity,11108,,40087320
ItemPOSIdentity,11108,,40087337


*If you look at the above format, the Task.x is linked with Data.x element
and Task.x defines which operation to perform such as addupdate/delete/add
etc. The operation type defined in Task.x needs to be executed on Data.x.
For eg. If the operation type is addupdate for Task.1 then for Data.1, we've
to execute addupdate for all the rows. I need to read this file, process it
and generate a new file in a different format.*

Your help is much appreciated.

Thank you.

Best Regards,
Raghu



--
View this message in context: 
http://camel.465427.n5.nabble.com/Need-help-in-processing-comma-seperated-text-file-tp5787930.html
Sent from the Camel - Users mailing list archive at Nabble.com.


How to delete messages by AWS-SQS Component with deleteAfterRead

2016-09-22 Thread Yi Yan
Hi,

I'm using camel-aws version 2.17.3, the deleteAfterRead options works well when 
I only set it by true, but when I use deleteIfFiltered(false) together, the 
message will not be deleted, then I changed them both as true the message can 
be deleted in queue. Is there any relationship between deleteAfterRead and 
deleteAfterRead? Does it mean if I use deleteAfterRead with deleteAfterRead 
together, I need to set them both with true when I want to delete the messages 
after read it?

No message will not be delete
[code]
from("aws-sqs:myQueue"
+ "?amazonSQSClient=#myClient "
+ "= true=false + 
"=All")
.filter().simple("${body} == 'foo'").to("log:qs_route.cLog_1" + 
"?level=WARN");

from("timer:cTimer_1" + "?repeatCount=" + 2 + "=" + 1000)
.routeId("qs_route_cTimer_1")
.setBody()
.constant("bar").to("aws-sqs:myQueue "
+ "? amazonSQSClient=#myClient")

from("timer:cTimer_2" + "?repeatCount=" + 2 + "=" + 1000)
.setBody()
.constant("foo").to("aws-sqs:myQueue "
+ "? amazonSQSClient=#myClient");
 [/code]


Thanks,
Yi