developer:soap-1.1:methods:searchcustomerscustom

Differences

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

Link to this comparison view

Next revision
Previous revision
developer:soap-1.1:methods:searchcustomerscustom [2009/06/24 13:49]
charlie created
developer:soap-1.1:methods:searchcustomerscustom [2010/10/21 15:39]
irina
Line 100: Line 100:
 </​code>​ </​code>​
  
 +==== .NET VB ====
 +<code vb>
 +Dim matchAll As Boolean
 +        matchAll = True
  
 +        Dim search(0 To 1) As usaepay.SearchParam
 +
 +        search(0) = New usaepay.SearchParam()
 +
 +        search(0).Field = "​Amount"​
 +        search(0).Type = "​equals"​
 +        search(0).Value = "​10.00"​
 +
 +        Dim FieldList(0 To 2) As String
 +
 +        FieldList(0) = "​CustNum"​
 +        FieldList(1) = "​BillingAddress.Company"​
 +        FieldList(2) = "​Amount"​
 +
 +        Dim result As String
 +
 +        result = client.searchCustomersCustom(token,​ search, matchAll, "​0",​ "​10",​ FieldList, "​csv"​)
 +        Dim binaryData() As Byte
 +        binaryData = Convert.FromBase64String(result)
 +
 +        MsgBox(Encoding.UTF8.GetString(binaryData))
 +</​code>​
 +
 +==== .NET C# ====
 +<code c>
 +Boolean matchAll = true;
 +
 +            usaepay.SearchParam[] search = new usaepay.SearchParam[2];​
 +            search[0] = new usaepay.SearchParam();​
 +
 +            search[0].Field = "​amount";​
 +            search[0].Type = "​gt";​
 +            search[0].Value = "​10.00";​
 +
 +            string[] FieldList = new string[3];
 +            FieldList[0] = "​CustNum";​
 +            FieldList[1] = "​BillingAddress.Company";​
 +            FieldList[2] = "​Amount";​
 +
 +            string result;
 +
 +            try
 +            {
 +                result = client.searchCustomersCustom(token,​ search, matchAll, "​0",​ "​10",​ FieldList, "​csv"​);​
 +                Byte[] binaryData = new Byte[3];
 +                binaryData = Convert.FromBase64String(result);​
 +
 +                MessageBox.Show(Encoding.UTF8.GetString(binaryData));​
 +
 +            }
 +
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +</​code>​
  
 ===== Change History ===== ===== Change History =====
developer/soap-1.1/methods/searchcustomerscustom.txt ยท Last modified: 2010/10/21 15:39 by irina

Page Tools