If you want to post or get data from an http endpoint you are sending
data to it... I makes sense you need a http component that can
produce to the endpoint. So you need a route that looks like:
from("direct:a").to("http://www.google.com");
But right now our HTTP component does not implement the producer part.
If someone wants to take a stab at implementing it please let me know.
I might be able to guide you down the right path.
Regards,
Hiram
On 8/22/07, Nicky Sandhu <[EMAIL PROTECTED]> wrote:
>
> HttpComponent creates an embedded jetty server. This seems to be different
> from the stated aim of the component which is to represent http endpoints
> (not "host" them). Am I missing the point?
>
> Consuming external http resources is not possible as the
> createMethod(Exchange exchange) method in HttpProducer can never result in a
> return of GetMethod(uri).
>
> So going to back to the route I have to represent www.google.com as a
> endpoint and then consume from it, it should send back the contents of the
> get request to http://www.google.com. If I produce to it, it should be able
> send a post request to the url with the contents of the message... OR is
> that too restful and needs another component ?
>
> from("http://www.google.com").to("direct:a")
>
> or is there some other component to achieve the above?
>
> --
> View this message in context:
> http://www.nabble.com/Consuming-from-a-http-endpoint-tf4314211s22882.html#a12283406
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Regards,
Hiram
Blog: http://hiramchirino.com