title: get Order_Item_Id using magento api
body: <p>I want to create invoice in to magento store using magento api in php.For that I want to create invoice for particular quantity and item means If anyone wants to invoice one item in paricular quantity then It shoud be done.My code is working for array() or all quantity.
  Below is pseudo code for creating invoice</p>
  <pre><code>$client = new Zend_XmlRpc_Client('http://127.0.0.1:8080/AndroidMagento/api/xmlrpc')
  $session = $client-&gt;call('login', array('tester','tester'));
  $saleorderno = '100000007';
  
  Mage::init();
  $order = Mage::getModel('sales/order')-&gt;load($saleorderno);
  $orderItems = $order-&gt;getAllItems();
  $invoiceItems = array();
  
  
  foreach ($orderItems as $_eachItem) {
  $invoiceItems[$_eachItem-&gt;getItemId()] = $_eachItem-&gt;getQtyOrdered();
  }
  
  $result = $client-&gt;call('call',array($session,'sales_order_invoice.create',array($saleorderno,array('order_item_id' =&gt; 9474, 'qty' =&gt; 1),'Invoice Created by Test',false,false)));
  </code></pre>
  <p>I have seen this <a href="https://stackoverflow.com/questions/9678852/magento-sales-order-invoice-with-product-quantity-updation-using-api-not-working">link</a> where i found somewhat idea but i can't understand exactly.I can't understand how to get value of <strong>order_item_id</strong>.???<br />
  Any idea??? Please suggest me Thanks in advance...</p>