developer:soap-1.2:methods:converttrantocust

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.2:methods:converttrantocust [2010/02/12 10:47]
epouchak created
developer:soap-1.2:methods:converttrantocust [2010/10/19 12:08]
irina
Line 116: Line 116:
  System.out.println("​Soap Exception: " + e.getMessage());​  System.out.println("​Soap Exception: " + e.getMessage());​
 } }
 +</​code>​
 +
 +==== .NET VB ====
 +<code vb>
 +Dim refnum As String
 +        refnum = "​46978031"​
 +        Dim update(0 To 1) As usaepay.FieldValue
 +        For i As Integer = 0 To 1
 +            update(i) = New usaepay.FieldValue
 +        Next
 +
 +        update(0).Field = "​Schedule"​
 +        update(0).Value = "​weekly"​
 +        update(1).Field = "​NumLeft"​
 +        update(1).Value = "​7"​
 +
 +        Dim response As String
 +        response = client.convertTranToCust(token,​ refnum, update)
 +        MsgBox(response)
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string refnum = "​46978031";​
 +            usaepay.FieldValue[] update = new usaepay.FieldValue[2];​
 +            for (int i = 0; i < 2; i++) {
 + 
 +                update[i] = new usaepay.FieldValue();​
 + 
 +            }
 + 
 +            update[0].Field = "​Schedule";​ update[0].Value = "​weekly";​
 +            update[1].Field = "​NumLeft";​ update[1].Value = "​7";​
 + 
 +            string response;
 + 
 +            try
 +            {
 +                response = client.convertTranToCust(token,​ refnum, update);
 + 
 +                MessageBox.Show(string.Concat("​Customer Number: ",
 +                            response));
 + 
 +            }
 + 
 + 
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +
 +
 </​code>​ </​code>​
  
developer/soap-1.2/methods/converttrantocust.txt ยท Last modified: 2010/10/19 12:08 by irina

Page Tools