Do you just need an Http server for unit testing?  Maybe take a look
at the class "HttpTestServer.java" in this directory in Git:

https://fisheye6.atlassian.com/browse/camel-git/tests/camel-itest/src/test/java/org/apache/camel/itest/http

On Wed, Aug 14, 2013 at 11:01 PM, yiwang <imawan...@gmail.com> wrote:
> I rewrite code is as follows:
> public class TestHttpCamel {
>         private Main main;
>
>         public static void main(String args[]) throws Exception {
>
>                 TestHttpCamel example = new TestHttpCamel();
>                 example.boot();
>
>         }
>
>         public void boot() throws Exception {
>                 main = new Main();
>                 main.enableHangupSupport();
>                 main.addRouteBuilder(new RouteBuilder() {
>                         public void configure() {
>
> from("http://localhost:8080/wms/query_all_handlover_note?type=source";)
>
> .to("file:d:/temp/outbox?fileName=data.txt");
>
>                         }
>                 });
>                 main.run();
>         }
>
> }
> still not get the data.I have direct access to
> "http://localhost:8080/wms/query_all_handlover_note? Type = source",can
> obtain the json data.  The HTTP routing write wrong or need what
> configuration?
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Why-can-not-get-the-data-tp5737243p5737285.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to