Re: Invoking a REST client

2016-08-25 Thread Brad Johnson
Blueprint. I've done that a number of time. I may just continue using blueprint for that part. I've injected producerTemplates for that sort of thing in the past and then just route direct:foo to cxfrs what have you. On Thu, Aug 25, 2016 at 11:56 AM, Joseph Kampf wrote: > So what I think you a

Re: Invoking a REST client

2016-08-25 Thread Joseph Kampf
So what I think you are asking is how do you create a JaxRS client URI without using Spring to create a rsClient? Take a look at the cxfrs Component documentation. http://camel.apache.org/cxfrs.html Check out the section "How to invoke the REST service through camel-cxfrs producer" Btw, we

Invoking a REST client

2016-08-18 Thread Brad Johnson
Most of the switch over from using XML route builders to Java route builders is fairly painless and straightforward and the new CDI is a pleasure to work with. But there are certain aspects that I'm not quite familiar with like how to do the same thing as this in the Java DSL, http://localhost

Re: Rest DSL for a rest client?

2014-12-14 Thread Claus Ibsen
' such as http / http4 / jetty / netty-http. There is also CXF-RS as a rest client using JAX-RS coding. You then do not need Camel. Or you can use camel's cxfrs component. On Sun, Dec 14, 2014 at 9:17 PM, Christian Posta wrote: > Nope, at this time there is no implementati

Re: Rest DSL for a rest client?

2014-12-14 Thread Christian Posta
Nope, at this time there is no implementation for a rest "producer" or client, only the consumer which exposes REST operations. Cheers... On Sun, Dec 14, 2014 at 11:06 AM, Anton-2 wrote: > > Hi > > Is it possible to use the new Rest DSL for a rest client? If yes, are there

Rest DSL for a rest client?

2014-12-14 Thread Anton-2
Hi Is it possible to use the new Rest DSL for a rest client? If yes, are there any samples or docs to show how? thanks and regards -- View this message in context: http://camel.465427.n5.nabble.com/Rest-DSL-for-a-rest-client-tp5760676.html Sent from the Camel - Users mailing list archive at

Re: rest client - post a json content to and http enpoint

2014-12-03 Thread Willem Jiang
> -- > View this message in context: > http://camel.465427.n5.nabble.com/rest-client-post-a-json-content-to-and-http-enpoint-tp5759600p5759988.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: rest client - post a json content to and http enpoint

2014-12-02 Thread salemi
I have two questions: How can implement basic authentication? Is there a way to accept all certificates using HTTPS protocol? Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/rest-client-post-a-json-content-to-and-http-enpoint-tp5759600p5759988

rest client - post a json content to and http enpoint

2014-11-25 Thread salemi
Hi All, I am currently using the cxf-rs to send request to a rest endpoint. Unfortunately the cxf-rs don't work in our new container due to some class loading issues I can't resolve. What other library can use to implement a rest client and is there any example for posting a json cont

Re: rest client - post a json content to and http enpoint

2014-11-25 Thread Willem Jiang
, scottdawson (sc.e.daw...@gmail.com) wrote: > Ali, > We use the http4 Camel component for POSTing JSON to a REST service, for > example: > > > Regards, > Scott > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/rest-client-

Re: rest client - post a json content to and http enpoint

2014-11-25 Thread scottdawson
Ali, We use the http4 Camel component for POSTing JSON to a REST service, for example: Regards, Scott -- View this message in context: http://camel.465427.n5.nabble.com/rest-client-post-a-json-content-to-and-http-enpoint-tp5759600p5759602.html Sent from the Camel - Users mailing list archive

Re: Simple and easy REST client with Camel

2014-10-27 Thread Charles Moulliard
Stream caching is described here : http://camel.apache.org/stream-caching.html On Mon, Oct 27, 2014 at 12:41 PM, Jonathan Vila Lopez < jonathan.v...@gmail.com> wrote: > Hi Charles > > You are right. thank you a lot. > > Is that explained in any documentation page ? to read the source. > >

Re: Simple and easy REST client with Camel

2014-10-27 Thread Jonathan Vila Lopez
Hi Charles You are right. thank you a lot. Is that explained in any documentation page ? to read the source. Kind regards. [image: Inline image 2] * Jonathan Vila** * * jonathan.v...@gmail.com *

Re: Simple and easy REST client with Camel

2014-10-27 Thread Charles Moulliard
Your syntax is not correct as umarshalling of a jackson stream (coming from the HTTP request) will return a HashMap. To access to this value using the simple language, this syntax has to be used : simple("${body[code]}") Example : http://gateway.marvel.com/v1/public/comics?da

Re: Simple and easy REST client with Camel

2014-10-27 Thread Charles Moulliard
You syntax is not correct as unmarshalling of jackson will return On Mon, Oct 27, 2014 at 10:56 AM, Jonathan Vila Lopez < jonathan.v...@gmail.com> wrote: > Hi Charles > > Oki, thank you. > > But, how can I retrieve 3 attributes from the JSON and print out them ? In > the line 3 I get nothing in t

Re: Simple and easy REST client with Camel

2014-10-27 Thread Jonathan Vila Lopez
Hi Charles Oki, thank you. But, how can I retrieve 3 attributes from the JSON and print out them ? In the line 3 I get nothing in the console, so it seems line 2 in wrong in some way 1. ​ unmarshal().json(JsonLibrary.Jackson). 2. setBody(simple("my attributes are : ${body?.code?}")). 3.

Re: Simple and easy REST client with Camel

2014-10-27 Thread Charles Moulliard
Hi Jonathan, Our documentation is not longer up to date as now the http component proposes / provides also a HttpConsumer (= Polling Consumer) which is able every x second to do a HTTP request. So, you can also use this syntax within your Apache Camel route (from("http://";).to("") to poll a HTTP

Re: Simple and easy REST client with Camel

2014-10-27 Thread Jonathan Vila Lopez
Hello Charles But, with that code I used I successfully get the response and successfully unmarshals it.. in fact, in my code my problem was in the line of setBody I can not get the attributes. Anyway I will try your proposal. Kind regards. [image: Inline image 2] * Jonathan Vila*

Re: Simple and easy REST client with Camel

2014-10-27 Thread Charles Moulliard
Hi Jonathan, To call the HTTP Server exposing the REST service the HTTP producer must be used and not the HTTP Consumer component of Camel ( http://camel.apache.org/http.html). This syntax is not correct (from("http://";) while this one is correct from("direct:marvel").to(" http://gateway.marvel.

Simple and easy REST client with Camel

2014-10-26 Thread Jonathan Vila Lopez
Hello I have a very simple problem to solve but I've not been capable of sorting out. Have one REST remote webservice from Marvel, and would like to create a route that calls that webservice, gets the JSon response, and finally prints out 3 of its attributes. One told me the easiest approach wou

Re: Rest client

2012-07-25 Thread Willem Jiang
Please check out my comments in the mail. On Thu, Jul 26, 2012 at 3:00 AM, bitter geek wrote: > Hi Sergey, > > I'm quite new to Camel, still trying to get my head around a few concepts. > > How do you create a camel-cxfrs producer? Or for that matter, how do you > specify what type of producer to

Re: Rest client

2012-07-25 Thread Sergey Beryozkin
Hi On 25/07/12 20:00, bitter geek wrote: Hi Sergey, I'm quite new to Camel, still trying to get my head around a few concepts. Well, even though a CXFRS component has been around for few years now, I haven't had any contributions done, very minor ones, it really works thanks to all the work

Re: Rest client

2012-07-25 Thread bitter geek
Hi Sergey, I'm quite new to Camel, still trying to get my head around a few concepts. How do you create a CXFR producer? Or for that matter, how do you specify what type of producer to create? Does this have anything to do with the header CxfConstants.CAMEL_CXF_RS_USING_HTTP_API as shown below?

Re: Rest client

2012-07-25 Thread Sergey Beryozkin
On 25/07/12 09:30, bitter geek wrote: Hi Sergey, Can you elaborate on how to use CXF RS endpoint without using the producer? The CXFRS producer is a component built on top of the CXF RS client code, however you do not have to use it in order to talk to a RS service given the way that servic

Re: Rest client

2012-07-25 Thread bitter geek
Hi Sergey, Can you elaborate on how to use CXF RS endpoint without using the producer? You help is much appreciated. Thanks, Bing On 7/24/12, Sergey Beryozkin wrote: > I lost your private email, > > the CXF RS endpoint is safe, only the producer is not right now > > Cheers, Sergey > > On 24/0

Re: Rest client

2012-07-24 Thread Sergey Beryozkin
Hi On 24/07/12 14:52, bitter geek wrote: Hi All, I'm a bit confused with the sample code for creating rest endpoint. I do not have access to the rest service class but only want to create a rest endpoint to use with camel. Do I only need to create rsClient tag? If so, what class do I put there