2015-01-03 39 views
0

我試圖通過Magento SOAP API提高訂單發票,但是我得到一個'Order Not Exists'錯誤,因爲我知道存在一個增量ID。Magento SOAP salesOrderInvoiceCreate無法識別訂單

我的SOAP請求所生成的XML是:

<?xml version="1.0" encoding="utf-8"?> 
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > 
     <soap:Body> 
      <salesOrderInvoiceCreate xmlns="urn:Magento"> 
       <sessionId>a4b84a4900415cb6a61b3f81e4fxxxx4</sessionId> 
       <orderIncrementId>100000001</orderIncrementId> 
       <itemsQty SOAP-ENC:arrayType="SOAP-ENC:Array[1]" xsi:type="SOAP-ENC:Array"> 
        <item><order_item_id>1</order_item_id> 
        <qty>1.0000</qty> 
        </item> 
       </itemsQty> 
       <email>[email protected]</email> 
      </salesOrderInvoiceCreate> 
    </soap:Body> 
</soap:Envelope> 

和響應我得到的回覆是

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
<SOAP-ENV:Body> 
<SOAP-ENV:Fault> 
<faultcode>103</faultcode> 
<faultstring>Requested order not exists.</faultstring> 
</SOAP-ENV:Fault> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

不知道,如果我不通過正確的值,但我使用的其他方法(加載命令等)都按預期工作。

任何建議,將不勝感激。

謝謝!

回答