Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2015-01-28 Thread Raul Kripalani
Hey guys, It's me who developed this component, but in Camel we can only go as far as the Jsonlib library goes. Jsonlib prefixes XML attributes with '@' when converting them into JSON properties [1]. I think this is correct: without some kind of differentiation, you wouldn't be able to cycle back

How do I call a NTLM secured webservice using Camel-cxf?

2015-01-28 Thread bharadwaj
http://schemas.microsoft.com/xrm/2011/test/Services"; wsdlURL="Artifacts/wsdl/testService.wsdl" serviceClass="com.microsoft.schemas.xrm._2011.test.services.OrgService">

Http 3 Component and Credential delegation

2015-01-28 Thread richardgroote
Good day, When using the HTTP(3) component of Apache Camel it is possible to define a HttpClientConfigurer to add additional authentication / security. The HttpClientConfigurer is used when the http client is created. In our case we'd like to add a kerberos ticket when the http method is called.

Re: Modifying a shipped TypeConverter

2015-01-28 Thread Raul Kripalani
Yes, we definitely need an option to pick up a custom ObjectMapper. Could you file a JIRA and assign it to me, please? However, the type converter is only used as a (very convenient) fallback. If you provide a DBObject to your endpoint, no type conversions will be triggered. Therefore, for now, y

RE: How do I call a NTLM secured webservice using Camel-cxf?

2015-01-28 Thread Anil Vunnava
Hi Bharadwaj, May I know the web methods (operations) in your web service..? If there are more than one operations we either need to set header on exchange CxfConstants.OPERATION_NAME. Regards, Anil Vunnava -Original Message- From: "bharadwaj [via Camel]" Sent: ‎28-‎01-‎2015 04:40 PM

How do I call a NTLM secured webservice using Camel-http4?

2015-01-28 Thread bharadwaj
Hi Friends, Can any body point out sample code snippet on how to produce/call NTML secured webservice using camel-http4 component? or please advise, how to achieve it in some other way? Thanks in Advance -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-call-a-NT

Re: How do I call a NTLM secured webservice using Camel-cxf?

2015-01-28 Thread bharadwaj
Anil, may be in the given code snippet header is missing but we have set the header for operation name. On Wed, Jan 28, 2015 at 5:05 PM, Anil Vunnava [via Camel] < ml-node+s465427n5762177...@n5.nabble.com> wrote: > Hi Bharadwaj, > > May I know the web methods (operations) in your web service..? >

RE: How do I call a NTLM secured webservice using Camel-cxf?

2015-01-28 Thread Anil Vunnava
Bharadwaj, You are removing all the headers before sending to endpoint. Observe the snippet in your code. Regards, Anil Vunnava. -Original Message- From: "bharadwaj [via Camel]" Sent: ‎28-‎01-‎2015 05:14 PM To: "Anil Vunnava" Subject: Re: How do I call a NTLM secured webservice using

Re: Passing object parameters to Bean

2015-01-28 Thread Alarm
Not possible ? -- View this message in context: http://camel.465427.n5.nabble.com/Passing-object-parameters-to-Bean-tp5762124p5762182.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Modifying a shipped TypeConverter

2015-01-28 Thread James Green
CAMEL-8290 On 28 January 2015 at 11:22, Raul Kripalani wrote: > Yes, we definitely need an option to pick up a custom ObjectMapper. Could > you file a JIRA and assign it to me, please? > > However, the type converter is only used as a (very convenient) fallback. > If you provide a DBObject to yo

Re: Calling REST service without using spring

2015-01-28 Thread Willem Jiang
Hi, I don’t think you specify the right CamelContextLifecycle value. It should be “org.apache.camel.example.servletlistener.MyLifecycle" instead of “main.java.org.apache.camel.example.servletlistener.MyLifecycle” The server should be accessed from "http://localhost:8080/CONTEXT_PATH/camel/getPa

single CXF endpoint to accept SOAP message for different namespace versions

2015-01-28 Thread ashwin74268
Hi All, As of now, we have three different webservice endpoint for each type of Schema Version i.e has different namespaces. We are using camel-cxf 2.8.0. e.g 1) Schema with Namespace http://www.example.org/archive/schema/REL-5-1-2 has cxf endpoint cxf://http://hostname.com:/soap/greet 2) Sc

Re: single CXF endpoint to accept SOAP message for different namespace versions

2015-01-28 Thread Sergey Beryozkin
We can support it directly in CXF with a CXF Transform feature and servlet-level redirects. Example, a single endpoint is covered by 3 servlets, with one of them supporting the current version and two other servlets routing older/newer clients to this endpoint and having a transform feature ada

Camel's plans for ConcurrentLinkedHashMap

2015-01-28 Thread ndjensen
Camel ticket 4345 added ConcurrentLinkedHashMap. https://issues.apache.org/jira/browse/CAMEL-4345 It seems that ConcurrentLinkedHashMap is included in the camel-core jar but with a different package name of org.apache.camel.com.googlecode.concurrentlinkedhashmap. What is the reason that Concurre

Testing Routebuilder classes without a Mock endpoint

2015-01-28 Thread Vinny
Hello All, Sorry if this is a newb question but I was wondering if there is a way to test my routes in way that does not involve added .to("mock:xxx") on the end of the routes. I may be pure vanity but I don't like the idea of having "production" routes with mocks in them. I saw the documentation

Re: Testing Routebuilder classes without a Mock endpoint

2015-01-28 Thread Vinny
Ok, I was able to "append" a "mock:result" to a route using weaveById("silver").after(), still seems a little clunky though: https://gist.github.com/vinny2020/616935f45d34fb6b8dbd On Wed Jan 28 2015 at 3:08:05 PM Vinny wrote: > Hello All, > Sorry if this is a newb question but I was wondering i

HTTP consumer - Terminology confusing

2015-01-28 Thread muell01
I use the following as a REST consumer from an external service. I know the warning in the Camel docs... but am I using this a webservice consumer or as a Rest Client. Is this form proper? If not what would I replace it with? Would someone explain what the ramifications are in using HTTP as a co

Re: camel-script not working with blueprint

2015-01-28 Thread Daniel Lamb
Thanks Claus. Indeed, I needed to have camel-script-javascript installed. In my insane fervor of trial and error, I didn’t notice that I missed camel-script-javascript in my Karaf install. In case any one is interested, I did manage to get tests working with javascript and osgi. You have to

Re: Http 3 Component and Credential delegation

2015-01-28 Thread Willem Jiang
Hi, Current HttpProducer holds the HttpClient as the HttpProducer can be used in multiple thread, it is not safe to change the Credential per exchange processing. For you case, you need to create the HttpClient per exchange. You may need to override the process method of HttpProducer. -- Wil

Re: Camel's plans for ConcurrentLinkedHashMap

2015-01-28 Thread Willem Jiang
Hi, We just rewrite the package name of ConcurrentLinkedHashMap to avoid the version conflict, as ConcurrentLinkedHashMap could be use in the container where the camel is deployed into. I just updated the version to 1.4.2 in the camel master branch. -- Willem Jiang Red Hat, Inc. Web: http:/

Re: HTTP consumer - Terminology confusing

2015-01-28 Thread Willem Jiang
What kind of warning did you get? Using the HTTP component as a pulling consuming is OK from my point of view. It just pulling the result from url with the GET method. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com

Camel is running only one route at a point of time

2015-01-28 Thread ravi.4indra
I have camel context with routes like this from(file:dir1) //some processing .to(file:dir2) from(file:dir2) //some processing .to(file:dir3) from(file:dir3) //some processing .to(file:dir4) from(file:dir6) //some processing .to(file:dir7) we have a huge no of files going through the rout

Camel upgrade 2.10.3 to 2.14.1 -issues on quartz

2015-01-28 Thread som
I have the below quartz uri in the route throws two exceptions Exceptions: 1. org.apache.camel.FailedToCreateRouteException: Failed to create route DTS-Spring-upload-file-cron-route: Route(Spring-upload-file-cron-route)[[From[quartz://repo... because of Failed to resolve endpoint: quartz://re

Re: Using CXF endpoint to call an NTLM protected Rest service

2015-01-28 Thread sathiyaraja
Hi.,, The below links will help you.., http://camel.apache.org/http.html http://camel.apache.org/cxfrs.html http://stackoverflow.com/questions/10169570/how-can-i-invoke-a-restful-service-through-apache-camel Regards, Sathiya -- View this message in context: http://camel.465427.n5.nabble.com/

Re: HTTP consumer - Terminology confusing

2015-01-28 Thread Claus Ibsen
Hi It will poll this in an endless loop, its better to use a timer to schedule how often to call the http service if you want to call it repetitively. from timer to http On Thu, Jan 29, 2015 at 4:45 AM, Willem Jiang wrote: > What kind of warning did you get? > Using the HTTP component as a p