title: Submit a Post to symfony FosRestBundle
body: <p>As I try to use a REST API, I setted up a simple controller which should only return my POST Vars as a xml response.</p>
  
  <p>Unfortunately, it won't return it. I guess I have some probs by getting the data from the request.</p>
  
  <p>This is my Action inside the Controller. GET works fine, but POST won't do.</p>
  
  <pre><code> public function postAuthAction (Request $request)
   { 
     #$request      = $this-&gt;get('request'); 
     $username = $request-&gt;request-&gt;get('Username'); 
     $password = $request-&gt;request-&gt;get('Password'); 
     $data=array("user"=&gt;$username,"password"=&gt;$password);
     return $data;
   }
  </code></pre>
  
  <p>It only returns me:</p>
  
  <pre><code> &lt;result&gt;
     &lt;entry&gt;
       &lt;entry xsi:nil="true"/&gt;
       &lt;entry xsi:nil="true"/&gt;
     &lt;/entry&gt;
   &lt;/result&gt;
  </code></pre>
  
  <p>Which isn't that bad for the reason that it returns anything at all ;)</p>
  
  <p>I extpected something like</p>
  
  <pre><code> &lt;result&gt;
      &lt;user&gt;POST Username&lt;/user&gt;
      &lt;password&gt;POST Password&lt;/password&gt;
   &lt;/result&gt;
  </code></pre>
  
  <p>What am I doing wrong? IO don't get it. </p>
  
  <p>EDIT: my POST</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
    &lt;Login&gt;
         &lt;Username&gt;abc&lt;/Username&gt;
         &lt;Password&gt;pass12&lt;/Password&gt;
   &lt;/Login&gt;
  </code></pre>