/// <remarks/> public System.IAsyncResult BegincatalogProductInfo(string sessionId, string productId, string storeView, catalogProductRequestAttributes attributes, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("catalogProductInfo", new object[] { sessionId, productId, storeView, attributes}, callback, asyncState); }
public catalogProductReturnEntity catalogProductInfo(string sessionId, string productId, string storeView, catalogProductRequestAttributes attributes) { object[] results = this.Invoke("catalogProductInfo", new object[] { sessionId, productId, storeView, attributes}); return ((catalogProductReturnEntity)(results[0])); }
public void TestMethod() { MagentoService mservice = new MagentoService(); // need to get prod working mservice.Url = "https://www.candydirect.com/index.php/api/v2_soap/index/"; String mlogin = mservice.login("dynamics_ax", "dynamics_ax"); Console.WriteLine(mlogin); var atts = new catalogProductRequestAttributes(); atts.attributes = new string[]{"name", "price"}; //var info = mservice.catalogProductInfo(mlogin, "1113761-GP", null,atts); var sales = mservice.salesOrderInfo(mlogin,"100055500"); //Console.WriteLine("name: " + info.name); //Console.WriteLine(info.price); Console.WriteLine(sales.shipping_address.street); Console.WriteLine(sales.billing_address.street); Console.WriteLine(sales.created_at); DateTime convertedDate = DateTime.SpecifyKind( DateTime.Parse(sales.created_at), DateTimeKind.Utc); Console.WriteLine(sales.shipping_description); Console.WriteLine(convertedDate.Kind); Console.WriteLine(convertedDate.ToLocalTime()); }