title: Testing Spring RESTful services through JMETER. How to give multiple dynamic input for XML data?
body: <pre><code>@RequestMapping(method=RequestMethod.POST, value="/employeeXML")
  public ModelAndView addEmployeePostXMl(@RequestBody String body) {
      Source source = new StreamSource(new StringReader(body));
      Employee e = (Employee) jaxb2Mashaller.unmarshal(source);
      employeeDS.add(e);
      List&lt;Employee&gt; employees = employeeDS.getAll();
      EmployeeList list = new EmployeeList(employees);
      return new ModelAndView(XML_VIEW_NAME, "employees", list);
  }
  </code></pre>
  
  <p>I am able to test it for single POST body ie </p>
  
  <pre><code>&lt;employee&gt;
     &lt;id&gt;3&lt;/id&gt;
     &lt;name&gt;guest3&lt;/name&gt;
     &lt;email&gt;guest3@ibm.com&lt;/email&gt;
  &lt;/employee&gt;. 
  </code></pre>
  
  <p>But how to check it for multiple DYNAMIC values like CSV files.If i am using csv file with data : </p>
  
  <pre><code>3   aFFaFD       xfchghcxh
  4   dsfgsdF      cxhchcxht
  5   asFDdsF      chcxhcg
  6   sdFsF        cxhxhcgh
  7   SDFsF        cghcxhcg
  8   gfzsgzd      cxghchc
  9   hgfxhfx      cghchgc
  10  fghxf        ghcxhxc
  11  fhgfxh       cghchcc
  12  ghcxxh       cxhcghch
  13  chgxgcvx     cghchcxgch
  14  hgxfhxch     cxhgxchcg
  15  ghcxhcx      vmcvmnvbm
  16  cghch        bnmvmbh
  17  cxghcxhcx    mvbhgn
  18  cxghcxh      mnmcghmh
  19  cxghcxhxch   mnvmvmcv
  20  xcghchcx     mvcmvmv
  </code></pre>
  
  <p>it gives unmarshalling exception because the post body should be in XML format.</p>