This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
developer:soap-1.3:methods:searchbatchescount [2010/08/06 18:06] epouchak |
developer:soap-1.3:methods:searchbatchescount [2010/10/05 14:50] irina |
||
---|---|---|---|
Line 94: | Line 94: | ||
} | } | ||
</code> | </code> | ||
+ | |||
+ | ==== .NET VB ==== | ||
+ | <code vb> | ||
+ | Dim matchAll As Boolean | ||
+ | matchAll = True | ||
+ | Dim start As String | ||
+ | Dim limit As String | ||
+ | Dim sort As String | ||
+ | start = "0" | ||
+ | limit = "10" | ||
+ | sort = "closed" | ||
+ | |||
+ | Dim search(0 To 1) As usaepay.SearchParam | ||
+ | search(0) = New usaepay.SearchParam | ||
+ | search(0).Field = "closed" | ||
+ | search(0).Type = "gt" | ||
+ | search(0).Value = "2010-08-05" | ||
+ | |||
+ | Dim result As usaepay.BatchSearchResult = New usaepay.BatchSearchResult | ||
+ | result = client.searchBatchesCount(token, search, matchAll, start, limit, sort) | ||
+ | MsgBox(result.BatchesMatched) | ||
+ | </code> | ||
+ | |||
+ | ==== .NET C# ==== | ||
+ | <code c> | ||
+ | Boolean matchAll; | ||
+ | matchAll = true; | ||
+ | string start = "0"; | ||
+ | string limit = "10"; | ||
+ | string sort = "closed"; | ||
+ | |||
+ | string[] fields = new string[3]; | ||
+ | usaepay.SearchParam[] search = new usaepay.SearchParam[2]; | ||
+ | search[0] = new usaepay.SearchParam(); | ||
+ | |||
+ | search[0].Field = "Closed"; | ||
+ | search[0].Type = "gt"; | ||
+ | search[0].Value = "2010-08-05"; | ||
+ | |||
+ | usaepay.BatchSearchResult result = new usaepay.BatchSearchResult(); | ||
+ | |||
+ | try | ||
+ | { | ||
+ | result = client.searchBatchesCount(token, search, matchAll, start, limit, sort); | ||
+ | |||
+ | MessageBox.Show(string.Concat(result.BatchesMatched)); | ||
+ | |||
+ | } | ||
+ | |||
+ | |||
+ | catch (Exception err) | ||
+ | { | ||
+ | MessageBox.Show(err.Message); | ||
+ | } | ||
+ | } | ||
+ | </code> | ||
+ | |||
==== XML ==== | ==== XML ==== | ||