developer:soap-1.3: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.3:methods:searchcustomerscustom [2010/06/02 09:27]
hmcgowan created
developer:soap-1.3:methods:searchcustomerscustom [2010/10/07 16:40]
irina
Line 75: Line 75:
 </​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 = "​Created"​
 +        search(0).Type = "​Contains"​
 +        search(0).Value = "​2010-09-09"​
 + 
 +        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",​ "​fname"​)
 +        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 = "​Created";​
 +            search[0].Type = "​Contains";​
 +            search[0].Value = "​2010-08-30";​
 +
 +            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",​ "​fname"​);​
 +                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.3/methods/searchcustomerscustom.txt ยท Last modified: 2010/10/07 16:40 by irina

Page Tools