Hello,
The second call to the getMethod fails. Do you know why ?
GetMethod getMethod = new GetMethod("/ind");
final NameValuePair[] anvp = {new
NameValuePair(WSCConstants.PARAM_xxx, x)};
getMethod.setQueryString(anvp);
int statusCode =
httpClient.executeMethod(getMethod);
if (statusCode == HttpStatus.SC_OK) {
putNumber =
Integer.parseInt(getMethod.getResponseBodyAsString());
}
getMethod.releaseConnection();
// This second get never call the Tomcat Servlet ??????
getMethod = new GetMethod("/getputdataservlet");
getMethod.setQueryString(anvp);
statusCode = httpClient.executeMethod(getMethod);
if (statusCode == HttpStatus.SC_OK) {
}
getMethod.releaseConnection();
Regards.