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

  • SEARCH
  • Home
  • 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 455137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:20:25+00:00 2026-05-12T22:20:25+00:00

If I have a client app sending requests to my web service, one after

  • 0

If I have a client app sending requests to my web service, one after another, will the web service be able to handle each request made and not override previous request because of a new request made? I want all requests to be handled and not replaced for another. Will I be able to do this with the multiple requests all coming from the same client

  • 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-05-12T22:20:26+00:00Added an answer on May 12, 2026 at 10:20 pm

    The answer depends on your architecture.

    For example, if the server is multi-threaded, and the business logic part is stateless, then on the server the requests won’t override, as each thread will call a function and return the result.

    On the client side, your best bet is to have each request sent from a different thread, so that that thread blocks until it gets its response, then the processing can go on fine.

    If you have a different design, please describe it.

    UPDATE: Based on the new info here is something you may want to look at:
    http://weblogs.java.net/blog/2006/02/01/can-i-call-you-back-asynchronous-web-services

    I am curious how, or if, you are doing asynchronous webservice calls. Generally webservices seem to block, but if you are making these calls so fast then I can only assume asynchronicity.

    So, the webservice can store the answers on the server-side, so there is a stateful class that stores results in a dictionary, by IP address. The client then polls for answers, so, ideally, if you send a request, you should be able to get back an array of answers as a response. If you have sent all the requests and are still waiting for more responses, then poll. You should be able, again, to get an array of answers, to cut down on wasted bandwidth.

    The better approach is to have your client also be a server, so that you send the request, with the IP address:port for the callback, so the server would make a oneway response to the client. But, this is more complicated, but it cuts down on wasting bandwidth.

    Update 2: This is being done without checking it, so there is probably errors:

    @WebMethod
    public ResponseModel[] AnswerQuestion(QuestionModel[] question) {
    // Get the IP address of the client
      AnswerController ac = new AnswerController(question, ipaddress);
      return mypackage.myclass.StaticAnswers.GetAnswers(ipaddress);
      // return an array
    }
    
    @WebMethod
    public ResponseModel[] GetAnswers() {
       return mypackage.myclass.StaticAnswers.GetAnswers(ipaddress);
    }
    

    OK, this should give a rough idea.

    There is no assumptions in AnswerController. It should know everything it needs to do the job, as it will be stateless, so, it refers to no global variables that can change, only const and perhaps static variables.

    The StaticAnswers class is static and just stores answers, with the lookup being ipaddress, for speed.

    It will return the answers in an appropriate array.

    When you have sent the last question then just call GetAnswers until you have gotten back everything. You may need to keep track of how many have been sent, and how many have been received, on the client side.

    This isn’t ideal, and is a very rough sketch, but hopefully it will give you something to work with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Linux/c client app that connects to a WCF web service over
I have client-server app. Client on C++, server on Java. I am sending byte-stream
I have client/server application where the client app will open files. Those files get
Suppose I have a client side app that sends out requests to a rails
I have a client submitting a web-request (POST) of XML data to a server.
I have an iPhone simulator app as client and WCF-REST, json encoded service running
I'm developing a client/server app that will communicate via rest. Some custom request data
I have mvc web app sending an email when new user gets created with
i have client-server app, I'm managing connections with Threads and handlers inside app, but
I have Android client app that communicates with server using Socket . On my

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.