timeout = Integer.parseInt(timeOutStr);
} catch (NumberFormatException e) {
Debug.logError(e, "Unable to set timeout to " + timeOutStr + " using default " + timeout);
}
HttpClient http = new HttpClient(conUrl);
http.setTimeout(timeout * 1000);
http.setParameter("API", requestType);
http.setParameter("XML", xmlString);
String responseString = null;
try {
responseString = http.get();
} catch (HttpClientException e) {
throw new UspsRequestException(UtilProperties.getMessage(resourceError,
"FacilityShipmentUspsConnectionProblem",
UtilMisc.toMap("errorString", e), locale));
}