How to submit webform programmaticaly? I need to submit data to a webform.

I receive data from POST submission from mobile application ("webservices").

So I try something like : 

$form_data = array();
$form_data['values']['firstname'] = $user-&gt;field_civilite['und'][0]['tid'];
$form_data['values']['lastname'] = $user-&gt;field_prenom['und'][0]['value'];
$form_data['values']['mail'] = $user-&gt;field_nom['und'][0]['value'];

webform_client_form_submit(226, $form_data);


But this is don't do anything.

Someone have any idea to do that?
webform can be programatically save, as shown in below example,

  $node = node_load($nid); //nid is the node id of your webform
  global $user;

 //the values to save
  $data = array(
    1 =&gt; array('value' =&gt; array($first_value)),
    2 =&gt; array('value' =&gt; array($second_value)),
  );

  $submission = (object) array(
    'nid' =&gt; $nid,
    'uid' =&gt; $user-&gt;uid,
    'submitted' =&gt; REQUEST_TIME,
    'remote_addr' =&gt; ip_address(),
    'is_draft' =&gt; FALSE,
    'data' =&gt; $data,
  );

  module_load_include('inc', 'webform', 'includes/webform.submissions');
  webform_submission_insert($node, $submission);
  webform_submission_send_mail($node, $submission);