• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Webservice Responses

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hopefully this is a pretty simple one... How does a webservice know where to send a response?

I mean if you had 10 browsers all sending requests to the same webservice on the same port, how does it know which browser to send which response back to?

I ask because I need to intercept a request to a webservice, analyse the contents of the request and send back an appropriate response myself (bypassing the webservice altogether) but I may potentially have several requests from different locations all coming in at once.
 
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web service container will keep a socket connect for the communication.
 
Rancher
Posts: 43009
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... which means you will need to analyze the TCP stream, and become familiar with TCP sequence numbers. A tool like Ethereal can be very helpful in this regard.

This sounds like a hack, though. Can't you piggy-back on the WS by using a JAX-RPC handler?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!