title: how to set request time out of web service client(java)
body: <p>I am working on a desktop based application that is like drop box, I have a function <code>downloadFile(long fileId)</code> that download file for me from web, desktop side of the application is in java where web service is written in .Net</p>
  
  <p><strong>I have generated WS client using netbeans</strong></p>
  
  <p><strong>The issue is:</strong>  Some times it happens that <code>downloadFile(long fileId)</code> function get stuck, </p>
  
  <p>What ever the reason behind it, I want if web service function does not give any response till a given time I snatch the control back from that function and generate a new call after some time. Is it possible using java?</p>
  
  <p><strong>EDIT</strong> I think that it could be done if can set the request time out of the web service but i don't have idea how to set time out in the client generated by netbeans </p>