Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9023443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:45:44+00:00 2026-06-16T05:45:44+00:00

I am working on a desktop based application that is like drop box, I

  • 0

I am working on a desktop based application that is like drop box, I have a function downloadFile(long fileId) that download file for me from web, desktop side of the application is in java where web service is written in .Net

I have generated WS client using netbeans

The issue is: Some times it happens that downloadFile(long fileId) function get stuck,

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?

EDIT 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:45:46+00:00Added an answer on June 16, 2026 at 5:45 am

    In the class FileUpload that is root class of web service(Generated by netBeans) there were some constructors of the class and function of the super class, one of them i was using to create SOAP object. That was looking like

    @WebEndpoint(name = "FileUploadSoap")
    public FileUploadSoap getFileUploadSoap() {
       return super.getPort(new QName("http://svc.qleapahead.com/", 
        "FileUploadSoap"), FileUploadSoap.class);
        }
    

    in this function i made some modifications in order to set time out parameter and this became like

    @WebEndpoint(name = "FileUploadSoap")
    public FileUploadSoap getFileUploadSoap() {
        FileUploadSoap fileUploadSoap = super.getPort(new QName(
                "http://svc.qleapahead.com/", "FileUploadSoap"),
                FileUploadSoap.class);
        ((BindingProvider) fileUploadSoap).getRequestContext().put(
                "com.sun.xml.internal.ws.request.timeout", 1000 * 2 * 60);
        return fileUploadSoap;
    }
    

    and problem solved…

    in short this statement helped me a lot

    ((BindingProvider) fileUploadSoap).getRequestContext().put(
                    "com.sun.xml.internal.ws.request.timeout", 1000 * 2 * 60);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a project that is building a java-based desktop application to
I'm working on a desktop application that will produce several in-memory datasets as an
I'm working on my own private Windows desktop application user interface framework based on
Application I am working on is desktop application based on healthcare. It is fully
I am writing a desktop application that will have to communicate with a windows
I am working on a Windows Desktop application that will store a number of
I'm working on a desktop application that has generated code for database access and
I'm working on a browser-based application that needs to be able to get users'
I'm working on a desktop application that watch folders using the fileevent api, so
I have an Adobe Air application(based in flash) that loads in PNG files from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.