title: Invoking a 'REST' service which have query parameters in the URL
body: <p>I have to invoke a GET on a service which returns <code>text/xml</code>.</p>
  
  <p>The endpoint is something like this: </p>
  
  <pre><code>http://service.com/rest.asp?param1=34&amp;param2=88&amp;param3=foo
  </code></pre>
  
  <p>When I hit this url directly on a browser (or some UI tool), all's good. I get a response.</p>
  
  <p>Now, I am trying to use <code>CXF WebClient</code> to fetch the result using a piece of code like this:</p>
  
  <pre><code>String path = "rest.asp?param1=34&amp;param2=88&amp;param3=foo";
  
  webClient.path(path)
      .type(MediaType.APPLICATION_JSON)
      .accept(MediaType.TEXT_XML_TYPE)
      .get(Response.class);
  </code></pre>
  
  <p>I was debugging the code and found that the request being sent was url encoded which appears something like this:</p>
  
  <pre><code>http://service.com/rest.asp%3Fparam1=34%26param2=88%26param3=foo
  </code></pre>
  
  <p>Now, the problem is the server doesn't seem to understand this request with encoded stuff. It throws a 404. Hitting this encoded url on the browser also results in a 404.</p>
  
  <p>What should I do to be able to get a response successfully (or not let the WebClient encode the url)?</p>