Francois,

Please submit a DEBUG level log. See http://jakarta.apache.org/commons/httpclient/logging.html

Cheers

Ortwin Glück

COURTAULT Francois wrote:
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.


--
[web]  http://www.odi.ch/
[blog] http://www.odi.ch/weblog/
[pgp]  key 0x81CF3416
       finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to