How are HTTP requests handled in Java Web Services? -


i new web services , going through book java webservices martin kalin. have gone through initial basic concept of , have question:

say producer sends http request (containing soap message envelope) java web service (consumer). request internally handled servlet extracts soap message , convert corresponding java domain object , service implementation bean called?

this question generic irrespective of off shelf framework metro , axis. consider below code

 endpoint.publish("webserviceurl", new customerserviceimpl()) 

now if consumer sends request webserviceurl, handled servlet @ entry point or handled in other way? (as how web request handled in web application)

requests handled can handle http requests, period.

it's convenient use servlets or filters because plumbing has been written in form of servlet/application container, isn't requirement. example, service running on netty wouldn't need follow servlet spec. (although iirc there's layer allow netty call servlets directly.)

as long both client , server talking http underlying implementation doesn't matter, , doesn't need servlets–it needs talk http.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -