Matchcode

 

Example Name:                              SimpleExample

 

Language:                                       Java

 

API type:                                           Java

 

API component filename:            capscan.jar

 

Environment:                                  Java 1.4 or higher 

 

 

What does it do?

 

Demonstrates searching using Cross Match.

 

This example is designed to work with both UK and international PAF files.

 

 

Could be used as a starting point for:

 

Creating an application to capture or verify a UK and/or international address.

 

 

Where to find the example code:

 

After running the setup from the Matchcode CD to install the client APIs you will find these examples installed (by default) in:

 

C:\Program Files\Capscan\SDK\Matchcode Client API\Java\Examples\SimpleExample

 

If you have installed to another location you will need to change the path where necessary.

 

 

What each file does:

 

File name                                         What does it do?

 

SimpleExample.java                          Source code for the example.

 

 


 

Preparing to run the example:

 

If you are not using the Capscan OnDemand service, please make sure that you have installed the Capscan Pool Manager and that it is up and running.

 

 

Running the example:

 

1.       Open a Command Prompt.

 

2.       cd "C:\Program Files\Capscan\SDK\Matchcode Client\Java\Examples\SimpleExample "

                                                                                                                       

3.       Make sure capscan.jar and the example directory is in the CLASSPATH.

 

4.       javac SimpleExample.java

 

5.       java SimpleExample

 

6.       The example will connect to the Matchcode server, run a search and display the results.

 

 

Trouble-shooting and hints:

 

1.       If you are running on a LAN make sure that the Capscan Pool Manager is running correctly.  To do this you can use the PoolMan Admin application that is installed along with the Capscan Pool Manager.

 

2.       If you are using the Capscan OnDemand service make sure that you can see the Internet.

 

3.       If you are using a firewall make sure that it is not blocking this example or the Capscan Pool Manager.  By default the Capscan Client/Server uses port 27920 for sending and receiving data.

 

4.       Try installing and running the Matchcode DC application to test that the Capscan Pool Manger is working correctly.  The installation for Matchcode DC can be found on the CD under:

 

Api\mcd_cs\win32\client\dc.

 

5.       For more hints and tips please see the SDK bookshelf documentation.