Hi Robert- There are a number of "web-service frameworks" you can implement to publish a service and consume the service with a client stub
starting with the lightly loaded REST webservice (WADL) http://wikis.sun.com/display/Jersey/WADL next implementation and most widely used in the non-REST genre is JAX-WS (Java WebServices for XML) http://jax-ws.java.net/ to AXIS which is my favourite http://axis.apache.org/axis/java/architecture-guide.html (dont get side-tracked by Jersey or Glassfish documentation..all 3 frameworks successfully under TOMCAT7) hth Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: robert.jen...@surecomp.com > To: users@tomcat.apache.org > Date: Wed, 27 Apr 2011 20:02:22 +0300 > Subject: webapp servlet vers web services > > Hi all, > > Not sure where to direct this question.. I thought I try here... > > In a webapp you have a servlet where by means of servlet mapping we can > direct all traffic, example > > <servlet-mapping> > <servlet-name>InitServlet</servlet-name> > <url-pattern>/</url-pattern> > </servlet-mapping> > > If I understand spec correctly and this being the only mapping, it will > become the default and all requests will be routed to the servlet. > > I also have a bunch of web services which when called do not route to the > servlet. My question; is there something like the idea of serlvet for web > services that will route all requests into a common location and from there > let the application farm it out to the correct web service. The reason I ask > is I like to isolate some security and business logic in to one location and > have that entered first by the web service call and then pass along to > correct service. > > I could extend a base object for each web service but that would prevent > adding external web services from source to the system without making > modifications to those sources. > > Sincerely, > > Robert Jenkin > Surecomp Services, Inc. > 2 Hudson Place, 4th Floor > Hoboken, NJ 07030 > Skype: robert.jenkin > Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537 > http://www.Surecomp.com > > > This mail was sent via Mail-SeCure System. > >