4 Replies Latest reply on Jul 14, 2014 12:40 PM by Raul Silva

    Retrieve headers message in camel route (SwitchYard 1.1)

    Raul Silva Newbie

      Dear,

       

      Is it posible retrieve inside camel route any heders value ?

       

      I have the folowing route:

       

      <?xml version="1.0" encoding="ASCII"?>

      <routes xmlns="http://camel.apache.org/schema/spring">

          <route>

              <from uri="switchyard://RouteServiceInter"/>

              <log message=" Start --------->  "/>

              <log message="Header - message received: ${headers.queryParams}"/>

            

              <setBody>

                  <simple>Hello how are you? </simple>

              </setBody>

              <log message="Headersr - message received: ${headers}"/>

              <to uri="switchyard://IpsServiceInter"/>

              <log message="RouteServiceInter - message received: ${body}"/>

          </route>

      </routes>


      But,  log name "Header" don`t show nothing.


      I need to retrieve "queryParams" or "queryString".


      Thanks and advance,


      Raúl.-