注文のアイテムリストを取得できません。注文番号を取得できますが、注文した製品を取得できません。C#VisualStudioでMagentoAPIを実行しています。私のコードは次のようになります。
class Program
{
//Mage_Api_Model_Server_V2_HandlerPortType handler = new Mage_Api_Model_Server_V2_HandlerPortType();
static void Main(string[] args)
{
Mage_Api_Model_Server_V2_HandlerPortTypeClient handler = new Mage_Api_Model_Server_V2_HandlerPortTypeClient();
try
{
//initiate connection
string session = handler.login("tauren_SOAP", "test123");
filters mf = new filters();
/* expiriment to grab order items */
string order_id = "";
salesOrderListEntity[] soe = handler.salesOrderList(session, mf);
foreach (salesOrderListEntity msoe in soe)
{
try
{
order_id = msoe.increment_id;
Console.WriteLine("Order Id: " + order_id);
orderItemIdQty itm = new orderItemIdQty();
Console.WriteLine(itm.qty);
Console.WriteLine("-----------------------");
}
catch (Exception exp)
{
Console.WriteLine(exp.ToString());
}
}
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
//prompt for exit
Console.WriteLine("Finshed. Press Return to Exit...");
Console.ReadLine();
}
これ以上の情報が必要な場合は、私に知らせてください。よろしくお願いします!