A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
Joined: May 08, 2012
Jun 24, 2012 08:17:30
I am new to webservices . I am trying to understand Jax-ws , Jax-Rs
Till now my understanding is
we have top down , bottom up approaches. (wsgen ,wsimport) tools to generate in jax-ws.
Here my doubt is how does the request will (from wsgen , wsimport generated class , what is the role of
) go when we do request like (Ex :http://localhost:8080/WebServicesExample/hello) .
what is the role of servlet or servlet container will do in both Jax-ws , jax-rs top down , bottom up approaches.
I really appreciate you guys help . I am sorry i can't format question correctly.
many many thanks in advance.
William P O'Sullivan
Joined: Mar 28, 2012
Jun 25, 2012 08:41:21
The servlet should delegate to a service layer that invokes the web-service, handles the marshalling and returns a model.
The servlet can then do whatever it wants with the model object prior to returning to the view.
Just like database operations, keep the business logic out of the servlet and let dedicated service objects do their job.
(Must easier to
in a TDD environment also)
subject: Webservice servlets
Learning WS using JBOSS and following sun JEE5 tutorial
beginner questions regarding axis2
Objective 4.7 - Describe creating a Web Service using JAX-WS
disable xjc(JAXB generation) in wsimport task
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015