This topic contains 1 reply, has 0 voices, and was last updated by mtt 7 years, 10 months ago.

  • Author
    Posts
  • #6501

    mtt

    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.

  • #6502

    mtt

    Ok, I have found

You must be logged in to reply to this topic.