Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8205157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:07:45+00:00 2026-06-07T08:07:45+00:00

I am having trouble Retrieving an order’s item list.I can pull the order numbers,

  • 0

I am having trouble Retrieving an order’s item list.I can pull the order numbers, but not the products ordered.I am running The Magento API in C# visual Studio.
My code lookes like this:

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();
    }

If you need anymore information, please let me know.
Thank you in advanced!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:07:46+00:00Added an answer on June 7, 2026 at 8:07 am

    You need to iterate order.items…

    foreach (salesOrderItemEntity OrderDetail in msoe.items){
    …
    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I must be missing something simple here, but I'm having trouble retrieving data from
I'm having some trouble storing and retrieving items into a list<> with a custom
I'm having trouble with retrieving queries from my SQL database. I can get the
I am having trouble with datamapper not updating a model. I can create and
I'm having trouble retrieving the members of a certain group in active directory. The
I am using JAX-WS and I am having trouble retrieving the client information that
I have a feeling I'm asking a stupid question here. I'm having trouble retrieving
I´m having some trouble retrieving a collection of strings in a projection: say that
I'm having trouble storing and retrieving a float in NSUserDefauts. I store the value,
I'm having a bit of trouble iterating and retrieving width() values. $(.MyClass).each( function ()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.