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 9221147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:30:50+00:00 2026-06-18T03:30:50+00:00

I have an asynchronous web service pair that I need to handle in the

  • 0

I have an asynchronous web service pair that I need to handle in the web layer. I have written a ‘request’ service client that sends a query request to a service. The client receives an http ‘200’ that the message was successfully received by the server.

I then have a separate response listener which is a Camel/CXF web service which receives the response. I am using a WS-Addressing message ID to correlate the requests and responses.

I am now tasked with handling this in the web layer. I would like the user to complete a form, click submit, and invoke the web service. Then my CXF web service listener would receive a response, look at the Message ID and return it to the web layer.

With a synchronous service, this is very straight forward to do. However, with the asynchronous web service pair, I am not sure where to start. I could use a polling approach where I invoke the web service, write the message ID to a map and then poll the map and wait for the web listener to write the response to the map. However, I think there are frameworks that support this.

I am research Spring MVC and JQuery as I think this is the right direction but am having problems finding good resources for beginners.

Does anyone have any ideas?

Thanks,
Yogesh

  • 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-18T03:30:51+00:00Added an answer on June 18, 2026 at 3:30 am

    One approach is to write a Spring MVC controller that invoke outbound web service, and wait until the inbound web service (ie: response) is received. You can achieve this by suspending your thread while waiting inbound service, and resuming the thread afterwards. While this is happening, you can show some sort of spinner on the website. So from browser perspective, it’s still look like one request and response.

    However depending on your website traffic, this could be an inefficient approach because one web container thread will be utilized while you wait for the inbound service. If your website has heavy traffic — and the delay between inbound and outbound requests are significant, you can run out of free threads quick and crashes the site.

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

Sidebar

Related Questions

I have a synchronous web service call that returns a message. I need to
I have method that does asynchronous call to web service. Something like that: public
I have a .NET 2.0 Smart client and with web service back end that
Let's say you have a Javascript function that calls a web service method. So
I have a asynchronous web service using axis2 which I call two different times
I have 2 different XMLHttpRequest objects making asynchronous requests to the same web service.
I recently inherited a Silverlight web project that uses WCF services to handle asynchronous
I have a web service that I would like to load test by sending
I am debugging an ASMX web service that receives bursts of requests. i.e., it
I have a web service in WCF that consume some external web services, so

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.