developer:soap-1.4:methods:getproduct

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.4:methods:getproduct [2010/07/26 17:29]
tem created
developer:soap-1.4:methods:getproduct [2010/09/07 12:26]
irina
Line 63: Line 63:
  
 <code vb> <code vb>
-    ​Dim client ​As usaepay.usaepayService ​= New usaepay.usaepayService + Dim prod As usaepay.Product ​= New usaepay.Product 
-    Dim token As usaepay.ueSecurityToken+        Dim refNum ​As String 
 +        refNum = "​9001169811"​
  
-    token Me.CreateToken("​982lz9VsLm87MA54Sv8E582h8OZMArL6"​"​1234"​)+        prod client.getProduct(tokenrefNum) 
 +        MsgBox(prod.Name) 
 +</​code>​
  
-    Dim prod As usaepay.Product ​New usaepay.Product+==== .NET C# ==== 
 +<code c> 
 +            string RefNum = "​900116985";​
  
-    prod = client.getProduct(token, ​"​91200943533"​)+            usaepay.Product response = new usaepay.Product();​ 
 + 
 +            try 
 +            { 
 +                response ​= client.getProduct(token, ​RefNum); 
 +                MessageBox.Show(string.Concat(response.Price));​ 
 +            } 
 +            catch (Exception err) 
 +            { 
 +                MessageBox.Show(err.Message)
 +            }
 </​code>​ </​code>​
  
developer/soap-1.4/methods/getproduct.txt · Last modified: 2010/09/07 12:26 by irina

Page Tools