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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -