Ejemplo n.º 1
0
        /// <summary>
        /// use stub to get info of a PriceList via web services
        /// </summary>
        /// <param name="PriceListPaths">PriceLists to get, Array of paths</param>
        /// <param name="attributes">attributes to get, Array of attribute names</param>
        /// <returns>ArrayList of TGetInfo_Return</returns>
        public ArrayList getInfo(string[] PriceListPaths, string[] attributes, string[] languages)
        {
            TGetInfo_Return[] PriceLists_out = stub.getInfo(PriceListPaths, attributes, languages);

            ArrayList result = new ArrayList();

            for (int i = 0; i < PriceLists_out.Length; i++)
            {
                TGetInfo_Return PriceList_out = PriceLists_out[i];

                if (PriceList_out.Error == null)
                {
                    Console.WriteLine("successfully retrieved PriceList: " + PriceList_out.Path);
                    result.Add(PriceList_out);
                }
                else
                {
                    Console.WriteLine("an error occured (Epages Error):\n" + PriceList_out.Error.Message);
                }
            }

            return(result);
        }