Re: Camel CXF Payload mode

2016-06-07 Thread mabahma
Thank you all it was a poblem of authentication i added a PasswordAutehntication class .. CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() { public void configure() throws Exception { > Authenticator.setDef

Re: Camel CXF Payload mode

2016-06-07 Thread mabahma
Sorry, i've replaced my private urls and datas by those..and i forgot to eliminate the token 'page' from the url..and these headers are also the same.. First call: SOAPAction: "urn:microsoft-dynamics-schemas/calculator:compute"\r\n second call: SOAPAction: "urn:microsoft-dynamics-schemas/cal

REST DSL bind mode per endpoint

2016-06-07 Thread Mark
I have a REST API that ingests XML via a POST endpoint and I also have an endpoint that will produce text/plain via GET. Is it possible to have the POST endpoint use JAXB and the GET endpoint produce text/plain? So for instance, I would like to have the following: Status service

Re: Camel CXF Payload mode

2016-06-07 Thread arno noordover
I see another difference: First call: *SOAPAction: "urn:microsoft-dynamics-schemas/calculator:compute"\r\n* second call: *SOAPAction: "urn:microsoft-dynamics-schemas/page/calculator:compute"\r\n* -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-Payload-mode-tp578353

Re: org.apache.camel.NoTypeConversionAvailableException while using WireTap

2016-06-07 Thread yogu13
Glad this works! but your earlier one should also work...there was a support for dynamic uri added to wiretap as part of 2.16, Not sure if it has a issue. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-NoTypeConversionAvailableException-whi

Re: How to stop a dynamic route

2016-06-07 Thread Quinn Stevenson
One problem with the control bus is you won’t be able to remove the route - only stop it. I’m not sure I understand exactly why you need to removed the route. Would it be possible to use the same “route”, but dynamically configure it to process a batch and then stop? So when you trigger it ag

Re: org.apache.camel.NoTypeConversionAvailableException while using WireTap

2016-06-07 Thread ranjitkumarm
No exchange is not null. I have found out a way to overcome this by invoking the loggerservice from a different route, .bean("requestUpdater", "setRequestToInProcessState") .wireTap("direct:logRoute") .newExchangeBody(constant("Some log message.")) .end() .enrich("bean:aBean?method=some

camel-guice and injecting the CamelContext into a @Provides method in the module

2016-06-07 Thread Steve973
Hello! I am attempting to convert my Camel application to Guice, and there are some things that I am missing when I read the documentation. Most of the examples that I see make use of a jndi.properties file and they use this along with something like a CamelModuleWithMatchingRoutes extension to b

Camel running on Tomcat in AWS EC2 instance

2016-06-07 Thread redrabbit7
Has anyone had success running Camel on Apache Tomcat in AWS environment? Our team is considering converting our existing heavy-weight ESB-EAP architecture running on JBoss to more lightweight microservice-based model with Camel/Tomcat 8 in AWS environment. Looking for any suggestions or advice fr

Re: double log entries from Tracer

2016-06-07 Thread Evguenia Krylova
>> > class="org.apache.camel.processor.interceptor.Tracer"> >> >> >> Yes, it was >> I did not understand the value correctly. Ev > On Jun 7, 2016, at 9:23 AM, Claus Ibsen wrote: > > You have traceOutExchanges=true which will log 2x, eg before (IN) and > after (OUT) each proce

Re: double log entries from Tracer

2016-06-07 Thread Claus Ibsen
You have traceOutExchanges=true which will log 2x, eg before (IN) and after (OUT) each process in the routes. Maybe its that what is confusing you. On Mon, Jun 6, 2016 at 10:30 PM, Evguenia Krylova wrote: > I see double entries in the log from the Tracer but can’t figure out why. > > [INFO ] or

Re: rest to soap

2016-06-07 Thread miri eyni
i found the solution: i need to change the contectType to json and removing the marshal -- View this message in context: http://camel.465427.n5.nabble.com/rest-to-soap-tp5783547p5783570.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: rest to soap

2016-06-07 Thread Brad Johnson
Because XStream is marshaling it as XML. Why are you using XStream for that. I love XStream and it can do JSON but there are probably easier/better ways to do it. On Tue, Jun 7, 2016 at 6:08 AM, miri eyni wrote: > when i routing from soap to rest and than i marshal the response , i didn't > ge

Re: Camel CXF Payload mode

2016-06-07 Thread mabahma
Thank you for your replay I have tried with POJO mode and i send the xml header declaration but i still get 400 bad request response.. Aloso changed accept to 'text/xml, multipart/related' and got the same error.. What type of configuration you changed in WCF?? kind regards -- View this mes

Re: Loop in Routers

2016-06-07 Thread arno noordover
I would suggest to let the database solve this: for example update ABC set status=333 where event_id in (...your first statment...) -- View this message in context: http://camel.465427.n5.nabble.com/Loop-in-Routers-tp5783506p5783562.html Sent from the Camel - Users mailing list archive at Nabbl

Re: Camel CXF Payload mode

2016-06-07 Thread arno noordover
400 Bad Request does ring a bell. We had the same problem from MuleSoft talking to WCF. The configuration needed to be changed in WCF to solve this. I guess this is the answer that is return by WCF for some unclear reason. My advice would be to analyse the differences between interception using Soa

Re: Camel CXF Payload mode

2016-06-07 Thread mabahma
i've done and no differences.. I took each one and run it into SopaUi and get response.. is there any way to intrcept the Soap message before it s sent to target so i can check if there is a bad character? Kind regards -- View this message in context: http://camel.465427.n5.nabble.com/Camel

Content-Type

2016-06-07 Thread miri eyni
how can i change the Content-Type to appliation/json my response contain the json object but Content-Type=text/xml response example : HTTP/{0} {1} {2} Content-Type: text/xml; charset=UTF-8 Accept-Encoding: gzip,deflate breadcrumbId: ID-PortalBus-64186-1465288361638-0-80 Expires: -1 matchOnU

rest to soap

2016-06-07 Thread miri eyni
when i routing from soap to rest and than i marshal the response , i didn't get the response as a json format. http://{{fromUrl}}/bankValidation?matchOnUriPrefix=true"/>

Re: Camel CXF Payload mode

2016-06-07 Thread mabahma
Ok many thanks..It's working But now i get 400 bad request response : --- org.apache.cxf.transport.http.HTTPException: HTTP response '400: Bad Request' when communicating with http://localhost:9080/WS/calculator at org.a

Re: double log entries from Tracer

2016-06-07 Thread Thomas Günter
Hi Evguenia, You probably better show your logging configuration. The use of the tracer looks basically ok. Regards, Thomas 2016-06-06 22:30 GMT+02:00 Evguenia Krylova : > I see double entries in the log from the Tracer but can’t figure out why. > > [INFO ] org.springframework.context.support.C

Camel-Kafka zookeeper based discovery

2016-06-07 Thread chittaranjan
Hi i am using camel 2.15.1 creating a camel bundle to connect kafka cluster the route i am writing is But this is static kafka discovery i want to do zookeeper based discovery in which i dont have to configure all the kafka server to

Re: Camel CXF Payload mode

2016-06-07 Thread souciance
Well bad request usually means the payload is not what is expected. Why don't you simply copy the payload that generates that error and compare it to one which does not and see what the difference is? That should give you a hint. On Tue, Jun 7, 2016 at 12:36 PM, mabahma [via Camel] < ml-node+s465

Re: Last minute notice: Camel wedinar and Conference regitration

2016-06-07 Thread Bilgin Ibryam
Yes, that's good idea. I'll create one if there isn't already existing on. On 7 June 2016 at 08:54, souciance wrote: > Thanks for recording it! > > By the way, it would be great if the Camel website had some sort of news or > conference page where all these events would be available so interested

Re: Camel CXF Payload mode

2016-06-07 Thread Jens
For a consumer endpoint in Payload mode, you only want the message payload (ie: body) without the SOAP stuff: String soap = "8545"; mabahma wrote > Hello everyBody > I'm struggling to make the folowing code to work.. > > > > CamelContext context = new DefaultCamelContext()

Re: Last minute notice: Camel wedinar and Conference regitration

2016-06-07 Thread souciance
Thanks for recording it! By the way, it would be great if the Camel website had some sort of news or conference page where all these events would be available so interested developers could be made aware of. On Tue, Jun 7, 2016 at 2:37 AM, bibryam [via Camel] < ml-node+s465427n5783519...@n5.nabbl

Camel CXF Payload mode

2016-06-07 Thread mabahma
Hello everyBody I'm struggling to make the folowing code to work.. CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() { public void configure() throws Exception { from("direct:test")