title: Make a request application/x-www-form-urlencoded using wso2 esb
body: <p>I trying to retrive a token OAuth2. But I don't khnow how I can make a x-www-form-urlencoded request using wso2esb. 
  This is a snippet of my code:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;sequence name="test-oauth_v1" xmlns="http://ws.apache.org/ns/synapse"&gt;
      &lt;in&gt;
          &lt;property name="RESPONSE" scope="default" value="true"/&gt;
          &lt;property action="remove" name="NO_ENTITY_BODY" scope="axis2"/&gt;
          &lt;header action="remove" name="To"/&gt;
          &lt;property name="messageType" value="application/json" scope="axis2" type="STRING"/&gt;
           &lt;property name="basicAuth" scope="default" type="STRING" value="Z3FZVFhUQnhkQlVGNDloblxxzedtSGRBQ1kySWpmSmNvZXdh"/&gt;
  
  
          &lt;script language="js"&gt;&lt;![CDATA[
  
              var body = {};
              body.grant_type = 'password';
              body.username = 'xxxx';
              body.password = 'xxxxxxx';
              mc.setPayloadJSON(body);
  
          ]]&gt;&lt;/script&gt;    
  
          &lt;property name="messageType" scope="default" type="STRING" value="application/x-www-form-urlencoded"/&gt;
          &lt;header
              expression="fn:concat('Basic ', get-property('basicAuth'))"
              name="Authorization" scope="transport" xmlns:ns="http://org.apache.synapse/xsd"/&gt;
          &lt;call&gt;
              &lt;endpoint key="server_token_oauth"/&gt;
          &lt;/call&gt; 
  
          &lt;send /&gt;
      &lt;/in&gt;
  &lt;/sequence&gt; 
  </code></pre>
  
  <p>Would you have any propositions ?</p>
  
  <p>Best regards</p>