Search service

You use the search service to query the data contained in the Bank Wizard Database Table Files (DTF). You must supply the country you want to search and between 1 and 3 search parameters.

The search service always returns the standard branch data and the SWIFT and SEPA data, if you are licensed for this cross border data. You can limit the number of matches returned for each type of data to any number less than 100. If you leave the Result Limit blank, Bank Wizard returns 100 matches for each type of data, that is 100 branch data matches and 100 SWIFT and SEPA data matches.

The Bank Wizard web service response contains the number of matches (<matches>) and then includes a results section for each branch that matched the search (<resultSet>). The result set includes both the data and the metadata elements:

This example code searches the United Kingdom DTFs for Rugby, Nat and West, and returns a maximum of 10 matches for each type of data.

SearchRequest searchRequest = new SearchRequest();

/* Set information into the request */

GenericHeader client = new GenericHeader();

client.setUserID("BANKWIZARD_WEBCLIENT");

client.setWSDLVersion("1.0");

searchRequest.setClientInformation(client);

 

searchRequest.setISOCountryCode("GB");

searchRequest.setResultsLimit(new BigInteger("10"));

searchRequest.setSearch1("Rugby");

searchRequest.setSearch2("Nat");

searchRequest.setSearch3("West");

/* Check for a response */

SearchResponse searchResponse = port.searchDataRequest(searchRequest);

if (searchResponse != null) {

/* If the call was successful, display data */

System.out.println("Number of matches = " +searchResponse.getMatches());

/* Get an array of ResultSets */

SearchResult[] results = searchResponse.getResultSet();

if (results != null) {

for(int i=0;i<results.length;i++){

SearchResult result = results[i];

DataElement[] elements = result.getData();

for(int x=0;x<elements.length;x++){

/* Apply same principle for result.getMetaData()*/

DataElement element = elements[x];

System.out.println("Element ID = " +element.getID());

if(element.getDescription().length() >0){

System.out.println("Element Description = " +element.getDescription());

}

System.out.println("Element Value = " +element.getValue());

}

}

}

}else {

/* If the call was NOT successful, display an error message */

System.out.println("No search data retrieved");

}

Example SOAP messages