Hi,
I am trying to search a Customer thanks to SOAP API on a basic field.
But I don’t understand where my criteria has to be set…
Here is my snippet :
CustomerSearch customerSearch = new CustomerSearch();
SearchRequest sr = new SearchRequest();
sr.setSearchRecord(customerSearch);
SearchResponse searchResp = webService.search(sr);
List customerList = new ArrayList();
if(searchResp.getSearchResult().getStatus().isIsSu ccess())
{
RecordList rl = searchResp.getSearchResult().getRecordList();
for(Record r : rl.getRecord())
{
Customer c = (Customer)r;
customerList.add(c);
System.out.println(c.getAccountNumber());
}
}
This is a cached copy. Click here to see the original post.