facebook

Time Out

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #263449 Reply

    ZAchref
    Member

    i am trying to send an object via web service.
    i am getting this error when i execute the methods that returns the object from the server:

    14 déc. 2006 18:31:56 org.apache.commons.httpclient.HttpMethodBase writeRequest
    INFO: 100 (continue) read timeout. Resume sending the request
    14 déc. 2006 18:31:56 org.apache.commons.httpclient.HttpMethodBase readResponse
    INFO: Discarding unexpected response: HTTP/1.1 100 Continue

    Hope you can help.
    Thanks.

    #263459 Reply

    Brian Fernandes
    Moderator

    I assume your client is timing out. Unfortunately, I’m not too familiar with this situation, after how long do you see this exception?

    Can you try using the following snippet to increase the timeout interval and see if that helps?

    HttpClientParams params = new HttpClientParams();
    params.setSoTimeout(number);
    
    Client client = Client.getInstance(myEndpoint);
    client.setProperty(CommonsHttpMessageSender.HTTP_CLIENT_PARAMS, params);
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Time Out

You must be logged in to post in the forum log in