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);