Thanks for the reply. This is what the code ultimately looked like:
public class CamelHTTP {
public static void main(String args[]) throws Exception {
// create CamelContext
final CamelContext context = new DefaultCamelContext();
// add o
If you want to set the query parameters, you need to set the header before
sending the request.
the HTTP method should be POST instead of GET, as you are send the data
"mbl-stmt=(synloader(bounding-box 90 -180 -90180)(products(SYN)))".
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red
On Thu, Jan 24, 2013 at 4:56 PM, Zemin Hu wrote:
> You are right. I was trying too hard to use CamelSpringTestSupport, thinking
> it might be simpler to start my route and to test it together. I am wrong.
> This CamelSpringTestSupport can do other tests, say file in Ibsen's book,
> but not for ser
You are right. I was trying too hard to use CamelSpringTestSupport, thinking
it might be simpler to start my route and to test it together. I am wrong.
This CamelSpringTestSupport can do other tests, say file in Ibsen's book,
but not for servlet.
I am going to quit using CamelSpringTestSupport, jus
Hi,
What does your routes look like?
Do you need to simulate the Server behavior to the client (which could be a
camel route) to test?
If you want to use the HttpUnit, you have to use the HttpUnit client API to
invoke the service.
You can also try to start a embed Jetty server which can hold th
Actually I have been considering using jetty, I just have not tried out yet.
Let me know if you have some ready samples in hand for this purpose. I would
imagine if I use jetty, I have to put "jetty:" in front of all URIs, then
remove them after unit test, if you want to do test again, you have to
Hi
The "servlet" component requires you to run inside a Servlet
container, such as Apache Tomcat, Jetty,
and ESB containers such as ServiceMix etc.
When you run it standalone as unit test, then there is no servlet
container, and you cannot use that.
You can swap the servlet with jetty instead. T
OK. I had http endpoint as input to my route which I think caused it
to poll indefinitely.
Using a timer makes it more sane.
http://apps.dhis2.org/dev/api/metaData.xml?httpClient.authenticationPreemptive=true&authMethod=Basic&authUsername=admin&authPassword=district"/>
On 18 April 2012 13:
On Sun, May 24, 2009 at 9:28 PM, jpcook wrote:
>
> Hi, so this works and I have added support for proxy username and password.
> As I have subclassed the httpclientconfigurer it should already be possible
> to use the existing getter/setter methods in the http component from the
> spring configura
Hi, so this works and I have added support for proxy username and password.
As I have subclassed the httpclientconfigurer it should already be possible
to use the existing getter/setter methods in the http component from the
spring configuration.
eg) something like:
Hi,
About this last point, do you mean overload the httpcomponents constructor?
Currently it doesn't have one. I'm not that familiar with the xml
configuration side of things. Is there a unit test I could look at? I
searched for xml with bean id in but there isn't anything in camel core or
the ca
On Mon, May 11, 2009 at 10:15 AM, jpcook wrote:
>
> Thanks for the advice. I created a new ticket (CAMEL-1599) and hope to submit
> a patch today or tomorrow :)
Fantastic. Submitting patches open a door. That is how I got started
with Camel :)
>
> Claus Ibsen-2 wrote:
>>
>> On Fri, May 8, 2009 a
Thanks for the advice. I created a new ticket (CAMEL-1599) and hope to submit
a patch today or tomorrow :)
Claus Ibsen-2 wrote:
>
> On Fri, May 8, 2009 at 5:53 PM, Claus Ibsen wrote:
>> On Fri, May 8, 2009 at 5:49 PM, jpcook
>> wrote:
>>>
>>> Yes I can do it a bit later. I might even submit a
On Fri, May 8, 2009 at 5:53 PM, Claus Ibsen wrote:
> On Fri, May 8, 2009 at 5:49 PM, jpcook wrote:
>>
>> Yes I can do it a bit later. I might even submit a patch :)
>>
>> When you say via URI do you mean something like:
>> http://www.google.co.uk?httpClient.proxyName=host?httpClient.proxyPort=808
On Fri, May 8, 2009 at 5:49 PM, jpcook wrote:
>
> Yes I can do it a bit later. I might even submit a patch :)
>
> When you say via URI do you mean something like:
> http://www.google.co.uk?httpClient.proxyName=host?httpClient.proxyPort=8080
Yeah but the httpClient prefix should not be needed. So
Yes I can do it a bit later. I might even submit a patch :)
When you say via URI do you mean something like:
http://www.google.co.uk?httpClient.proxyName=host?httpClient.proxyPort=8080
Claus Ibsen-2 wrote:
>
> Hi
>
> Good findings.
>
> Lets add the proxy options to camel-http so you can set
Hi
Good findings.
Lets add the proxy options to camel-http so you can set it easily from the URI.
Looks like the HostConfiguration object isnt easy to access currently.
Do you mind creating a JIRA ticket for this?
Link to JIRA from this page:
http://camel.apache.org/support.html
On Fri, May
I have successfully created a simple unit test testing a get using the apache
http client without camel.
public static void main(String[] args) {
// TODO Auto-generated method stub
HttpClient client = new HttpClient();
HttpMethod method = new GetMethod("htt
On Thu, May 7, 2009 at 10:03 PM, jpcook wrote:
>
> And is it possible to get at the Apache HttpClient via the Camel Http
> endpoint?
Yes there should be some getter/setters to configure how you like it.
>
> Claus Ibsen-2 wrote:
>>
>> On Thu, May 7, 2009 at 6:37 PM, jpcook
>> wrote:
>>>
>>> Hell
And is it possible to get at the Apache HttpClient via the Camel Http
endpoint?
Claus Ibsen-2 wrote:
>
> On Thu, May 7, 2009 at 6:37 PM, jpcook
> wrote:
>>
>> Hello,
>>
>> I am playing around with the http endpoint in camel 2 and I thought a
>> good
>> starting point would be to run the testHtt
On Thu, May 7, 2009 at 6:37 PM, jpcook wrote:
>
> Hello,
>
> I am playing around with the http endpoint in camel 2 and I thought a good
> starting point would be to run the testHttpGet() in
> http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/ht
21 matches
Mail list logo