title: PHPXMLRPC Blog post to Drupal with metaWeblog.newPost: Wrong number of method parameters
body: <p>I'm trying to post a simple text string to my drupal site. It needs to be done with metaWeblog.newPost because with blogger.newPost sets all the text as title. I've already tried that one.</p>
  
  <p>I've got this thus far:</p>
  
  <pre><code> require_once('xmlrpc-v1.174.inc');
  
  $appkey     = "0001000";
  $blogid     = "blog";
  
  $username   = "xxxx";
  $password   = "xxxx";
  $text       = "testing";
  $boolean    = "true";
  
  $content['title'] = "Testen van metaWeblog.newPost";
  $content['description'] = $text;
  
  $oMessage = new xmlrpcmsg('metaWeblog.newPost');
  
  $oMessage-&gt;addParam( new xmlrpcval( $blogid , 'string' ));
  $oMessage-&gt;addParam( new xmlrpcval( $username , 'string' ));
  $oMessage-&gt;addParam( new xmlrpcval( $password , 'string' ));
  $oMessage-&gt;addParam( $content , 'struct' );
  $oMessage-&gt;addParam( new xmlrpcval( $boolean , 'boolean' ));
  
  $oClient = new xmlrpc_client("http://example.nl/drupal/xmlrpc.php");
  
  $oClient-&gt;setDebug(0);
  
  $oResponse = $oClient-&gt;send( $oMessage );
  
  if ($oResponse-&gt;faultCode() ) {
      $xWebserviceOutput = $oResponse-&gt;faultString();
  }
  else
  {
      $oValue = $oResponse-&gt;value();
      $xWebserviceOutput = $oValue-&gt;scalarval();
  }
  
  echo $xWebserviceOutput;
  </code></pre>
  
  <p>I'm have used this documentation:</p>
  
  <p><a href="http://www.sixapart.com/developers/xmlrpc/metaweblog_api/metaweblognewpost.html" rel="nofollow noreferrer">http://www.sixapart.com/developers/xmlrpc/metaweblog_api/metaweblognewpost.html</a>
  <a href="http://expressionengine.com/wiki/How_to_add_an_entry_using_PHP_and_Metaweblog_API/" rel="nofollow noreferrer">http://expressionengine.com/wiki/How_to_add_an_entry_using_PHP_and_Metaweblog_API/</a>
  <a href="http://api.drupal.org/api/function/blogapi_metaweblog_new_post/6" rel="nofollow noreferrer">http://api.drupal.org/api/function/blogapi_metaweblog_new_post/6</a></p>
  
  <p>The error it generates is the following:</p>
  
  <pre><code>Server error. Wrong number of method parameters.
  </code></pre>
  
  <p>Does anyone know what I'm doing wrong?</p>