// Client program for accessing the Mapping Service
//critical to set the time out of the client according to the maximum value needed for the estimation method
public static void main(String[] args) {
MapServiceAddressingLocator locator = new MapServiceAddressingLocator();
try {
String serviceURI = args[0];
// Create endpoint reference to service
EndpointReferenceType endpoint = new EndpointReferenceType();
endpoint.setAddress(new Address(serviceURI));
MapPortType map = locator.getMapPortTypePort(endpoint);
// Get PortType
map = locator.getMapPortTypePort(endpoint);
//necessary to set the client timeout, so that it does not occur during the create model phase
HTTPUtils.setTimeout((Stub)map, 1000 * 60 * 120);