// method to get product attribute options public static ProductAttributeOption[] Options(string apiUrl, string sessionId, object[] args) { IProductAttributes proxy = (IProductAttributes)XmlRpcProxyGen.Create(typeof(IProductAttributes)); proxy.Url = apiUrl; return(proxy.Options(sessionId, _catalog_product_attribute_options, args)); }
// method to get product attributes public static string CurrentStore(string apiUrl, string sessionId) { IProductAttributes proxy = (IProductAttributes)XmlRpcProxyGen.Create(typeof(IProductAttributes)); proxy.Url = apiUrl; return(proxy.CurrentStore(sessionId, _catalog_product_attribute_currentStore)); }
// method to list product attributes public static ProductAttribute[] List(string apiUrl, string sessionId) { IProductAttributes proxy = (IProductAttributes)XmlRpcProxyGen.Create(typeof(IProductAttributes)); proxy.Url = apiUrl; return(proxy.List(sessionId, _catalog_product_attribute_list)); }