Accessing the Bank Wizard web service

Before you can perform any validation, verification or searching, you must specify the URL of the service you want to access, the WSDL version you are using and the client information.

The client information is used to log which application made the request to the web service in the server log and, if you are licensed for Bank Wizard Absolute, is used at the Absolute service to identify who made the request. If you do not include a descriptive client name, you will not be able to determine which application made the request and therefore which application incurred any costs.

If you have multiple business applications that use the web service, you can use a different name for each application.

The URL for the service should be in the format:

http://servername:port/path

Where:

servername is the name of the server hosting the web service

port is the port used to connect to the web service

path is the full path from the web server to the service.

For example: http://BWServer:8080/BankWizard/services/ValidateBankAccount

/* Set the URL */

BankWizard_ServiceLocator loc = new BankWizard_ServiceLocator();

loc.setBankWizardEndpointAddress("http://BWServer:8080/BankWizard/services/ValidateBankAccount");

BankWizardServicePort port = loc.getBankWizard();

/* Generic header that must be included in all requests */

GenericHeader clientInformation = new GenericHeader();

clientInformation.setUserID("client");

clientInformation.setWSDLVersion("1.0");