developer:soap-1.3:methods:updateproduct

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
developer:soap-1.3:methods:updateproduct [2010/06/01 15:43]
tem created
developer:soap-1.3:methods:updateproduct [2010/10/12 15:38]
irina
Line 83: Line 83:
  
 <code vb> <code vb>
 +Dim RefNum As String
 +        RefNum = "​9001169812"​
 +
 +        Dim product As usaepay.Product = New usaepay.Product()
 +        product.ProductID = "​0-13-508011-8"​
 +        product.SKU = "​135080118"​
 +        product.UPC = "​9780135080115"​
 +        product.Category = "​Books:​Science"​
 +        product.Enabled = True
 +        product.Name = "​Non-Elementary Differential Equations"​
 +        product.Description = "​Rainville,​ Bedient and Bedient (Eight Edition)"​
 +        product.Weight = 1.0
 +        product.ShipWeight = 1.1
 +        product.Price = 112.0
 +        product.ListPrice = 128.0
 +        product.WholesalePrice = 100.0
 +        product.DateAvailable = "​2010-08-01"​
 +        product.Manufacturer = "​Prentice Hail"
 +        product.MinQuantity = "​0"​
 +
 +        Dim response As Boolean
 +
 +        response = client.updateProduct(token,​ RefNum, product)
 +        MsgBox(response)
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string RefNum = "​900116988";​
 +
 +            usaepay.Product product = new usaepay.Product();​
 +            product.ProductID = "​0-13-508011-8";​
 +            product.SKU = "​135080118";​
 +            product.UPC = "​9780135080115";​
 +            product.Category = "​Books:​Science";​
 +            product.Enabled = true;
 +            product.Name = "​Elementary Differential Equations";​
 +            product.Description = "​Rainville,​ Bedient and Bedient (Eight Edition)";​
 +            product.Weight = 1.0;
 +            product.ShipWeight = 1.1;
 +            product.Price = 112.00;
 +            product.ListPrice = 128.00;
 +            product.WholesalePrice = 100.00;
 +            product.DateAvailable = "​2010-08-01";​
 +            product.Manufacturer = "​Prentice Hail";
 +            product.MinQuantity = "​0";​
 +
 +            Boolean response;
 +
 +            try
 +            {
 +                response = client.updateProduct(token,​ RefNum, product);
 +                MessageBox.Show(string.Concat(response));​
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 </​code>​ </​code>​
  
developer/soap-1.3/methods/updateproduct.txt ยท Last modified: 2010/10/12 15:38 by irina

Page Tools