Download the java client library and it's dependent library (jmdns.jar).
Within your application you need to setup your client to find the CRS web service.
The following code will initialize the ClientConfigurationUtil:
ClientConfigurationFactory.createClientConfiguration(new HttpTransport(), new StaticServiceLocator());
When you want to run the application you must provide the following parameters:
This will tell the StaticServiceLocator the hostname to connect to.
This will tell the StaticServiceLocator the port to connect on.
This will tell the StaticServiceLocator the contextpath to communicate with.
This will tell the client library what configuration file will be used.
The following code will initialize the ClientConfigurationUtil:
ClientConfigurationFactory.createClientConfiguration(new HttpTransport(), new MDNSServiceLocator());
When you want to run the application you must provide the following parameters:
This will tell the client library what configuration file will be used.
String: ClientConfigurationUtil.getStringSetting("section", "setting") Integer: ClientConfigurationUtil.getIntSetting("section", "setting") ...