4 Replies Latest reply: May 10, 2011 9:42 AM by Tom Cunningham RSS

HttpRouter passing queryString

Madhu CM Newbie


I wrote up a sample ESB project which will  routs to http://in.search.yahoo.com/search.


below is the config


<service category="proxy" description="testProxy" invmScope="GLOBAL" name="testProxy">


    <http-gateway name="testProxxyhttp">    



   <actions mep="RequestResponse">

    <action class="org.jboss.soa.esb.actions.SystemPrintln" name="dsfds">

     <property name="message" value="sdfsdf"/>


    <action class="org.jboss.soa.esb.actions.routing.http.HttpRouter" name="httpR">

     <property name="responseType" value="STRING"/>

     <property name="method" value="GET"/>

     <property name="endpointUrl" value="http://in.search.yahoo.com/search"/>






In the web-browser if i type http://localhost:9000/ESBProxyServices/http/proxy/testProxy this will fetch me yahoo search page.

But if i type same above url with query string http://localhost:9000/ESBProxyServices/http/proxy/testProxy?p=java it never shows

search results.


My doubt is how can i pass query string in httpRouter? so that i can see the search results.




Madhu CM