developer:soap-1.4:methods:searchcustomerscustom

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:soap-1.4:methods:searchcustomerscustom [2010/08/30 14:20]
tem
developer:soap-1.4:methods:searchcustomerscustom [2011/02/01 15:58]
vladg add XML code
Line 73: Line 73:
  
 ?>  ?> 
 +</​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>​ </​code>​
  
Line 110: Line 138:
             }             }
 </​code>​ </​code>​
 +==== XML ====
 +<code xml>
 +<?xml version="​1.0"​ encoding="​UTF-8"?> ​
 +<​SOAP-ENV:​Envelope xmlns:​SOAP-ENV="​http://​schemas.xmlsoap.org/​soap/​envelope/" ​
 +xmlns:​ns1="​urn:​usaepay"​ xmlns:​xsd="​http://​www.w3.org/​2001/​XMLSchema" ​
 +xmlns:​xsi="​http://​www.w3.org/​2001/​XMLSchema-instance" ​
 +xmlns:​SOAP-ENC="​http://​schemas.xmlsoap.org/​soap/​encoding/" ​
 +SOAP-ENV:​encodingStyle="​http://​schemas.xmlsoap.org/​soap/​encoding/">​
 +<​SOAP-ENV:​Body>​
 +<​ns1:​searchCustomersCustom>​
 +<Token xsi:​type="​ns1:​ueSecurityToken">​
 +<​ClientIP xsi:​type="​xsd:​string">​192.168.0.1</​ClientIP>​
 +<PinHash xsi:​type="​ns1:​ueHash">​
 +<​HashValue xsi:​type="​xsd:​string">​6e62ffd4cbf1aaa659912f4444122e0b66ed2bd4</​HashValue>​
 +<Seed xsi:​type="​xsd:​string">​12966001102012554704</​Seed>​
 +<Type xsi:​type="​xsd:​string">​sha1</​Type>​
 +</​PinHash>​
 +<​SourceKey xsi:​type="​xsd:​string">​(Your Source Key Here)</​SourceKey>​
 +</​Token>​
 +<Search SOAP-ENC:​arrayType="​ns1:​SearchParam[2]"​ xsi:​type="​ns1:​SearchParamArray">​
 +<item xsi:​type="​ns1:​SearchParam">​
 +<Field xsi:​type="​xsd:​string">​amount</​Field>​
 +<Type xsi:​type="​xsd:​string">​gt</​Type>​
 +<Value xsi:​type="​xsd:​string">​8.00</​Value>​
 +</​item>​
 +<item xsi:​type="​ns1:​SearchParam">​
 +<Field xsi:​type="​xsd:​string">​customerid</​Field>​
 +<Type xsi:​type="​xsd:​string">​gt</​Type>​
 +<Value xsi:​type="​xsd:​string">​0</​Value>​
 +</​item>​
 +</​Search>​
 +<​MatchAll xsi:​type="​xsd:​boolean">​true</​MatchAll>​
 +<Start xsi:​type="​xsd:​integer">​0</​Start>​
 +<Limit xsi:​type="​xsd:​integer">​10</​Limit>​
 +<​FieldList SOAP-ENC:​arrayType="​xsd:​string[5]"​ xsi:​type="​ns1:​stringArray">​
 +<item xsi:​type="​xsd:​string">​CustNum</​item>​
 +<item xsi:​type="​xsd:​string">​BillingAddress.Company</​item>​
 +<item xsi:​type="​xsd:​string">​Amount</​item>​
 +<item xsi:​type="​xsd:​string">​Next</​item>​
 +<item xsi:​type="​xsd:​string">​CustomData</​item>​
 +</​FieldList>​
 +<Format xsi:​type="​xsd:​string">​csv</​Format>​
 +<Sort xsi:​nil="​true"/></​ns1:​searchCustomersCustom>​
 +</​SOAP-ENV:​Body>​
 +</​SOAP-ENV:​Envelope>​
 +</​code>​
 +
  
 ===== Change History ===== ===== Change History =====
developer/soap-1.4/methods/searchcustomerscustom.txt ยท Last modified: 2011/02/01 15:58 by vladg

Page Tools