title: Apache CXFRS and CAMEL configuration
body: <p>i want to consume the REST result by hitting a REST web Service available at <code>http://someotherhost</code> site. i have written a proxy client for it </p>
  
  <p>I want to hit the above REST service using apache CXFRS client and the write the result to a file. for which i am doing the following,could any one review the below and comment the things i have done wrong .</p>
  
  <p>a) My camel context configuration with apache cxf is as below</p>
  
  <pre><code>    &lt;jaxrs:client address="http://someotherhost/test/" id="cityServiceClient" username="test"         
              password="pwd" 
              serviceClass="com.santosh.proxy.service.city.CityService"&gt;
              &lt;jaxrs:features&gt;
                      &lt;ref bean="loggingFeature" /&gt;
              &lt;/jaxrs:features&gt;
      &lt;/jaxrs:client&gt;  
  
      &lt;camelContext xmlns="http://camel.apache.org/schema/spring"&gt;
              &lt;package&gt;com.santosh.routes&lt;/package&gt;
              &lt;routeBuilder ref="cityserviceroutebuilder" /&gt;
      &lt;/camelContext&gt;
  </code></pre>
  
  <p>b) MY Proxy service Interface</p>
  
  <pre><code>    @Path(value="/getCities") 
      public interface CityService   { 
  
         @POST 
         @Produces(value="text/xml") 
         public String getCities(@QueryParam("countrycode") String countryCode); 
      } 
  </code></pre>
  
  <p>c)  Call to service </p>
  
  <pre><code>   CityService cityService = (CityService) context.getBean("cityServiceClient"); 
     cityService.getCities("ae"); 
  </code></pre>
  
  <p>d) Camel Routes</p>
  
  <pre><code>  public class CityRoutes extends RouteBuilder { 
  
      public void configure() throws Exception { 
  
     //ROUTES 
      from("cxfbean:cityServiceClient") 
        .to("file://data/xmls/cities?fileName=test.xml"); 
      } 
  } 
  </code></pre>