title: Magento Sales Order Invoice with product quantity updation using API not working properly
body: <p>I'm creating a Magento application and I'm planing to create sales order invoice by using  Magento API.</p>
  
  <p>Here is my pseudo code for my invoice creation. The problem is it creates an invoice but that invoice is always blank (not showing products and quantity)</p>
  
  <pre><code>&lt;?php 
  
  $proxy = new SoapClient('http://myurl/api/soap?wsdl');
  $sessionId = $proxy-&gt;login('apiuser', 'apikey');
  
  // item array with sku and quantity
  $invoiceItems = array(
      '002' =&gt; '1', '003' =&gt; '1', '004' =&gt; '1', '005' =&gt; '1'
  );
  
  // Create new invoice
  $newInvoiceId = $proxy-&gt;call($sessionId, 'sales_order_invoice.create', array($saleorderno, $invoiceItems, 'Invoice Created', true, true));
  
  ?&gt;
  </code></pre>
  
  <p>But when I'm creating an sales order invoice like this (there's no changes in quantity  from sales order), it works properly</p>
  
  <pre><code>$newInvoiceId = $proxy-&gt;call($sessionId, 'sales_order_invoice.create', array($saleorderno, array(), 'Invoice Created', true, true));
  </code></pre>
  
  <p>Is there any mistakes with my code?
  Can any one give some advice for me?</p>