I read the recent threads about integrating JAX-WS and Tapestry. One of our
projects is using JAX-WS (Metro) with Tapestry for 3 years now, so I
extracted the relevant code and put in on github.

Here's the result: Tapestry JAX-WS Integration
https://github.com/derkoe/tapestry-jaxws

Features:

 * Using Tapestry services as web services
 * JAX-WS API 2.2
 * SOAPLoggingHandler for easy logging of requests/responses
 
I plan to add other JAX-WS supporting web service stacks as CXF.

Usage:
 
You can easily add a contribution to the MetroHttpServletRequestFilter:
 
        public static void
contributeMetroHttpServletRequestFilter(OrderedConfiguration<Webservice>
configuration,
                TestWebservice testWebservice)
        {
                configuration.add("testws", new Webservice(TestWebservice.class,
testWebservice, "TestWebservice", "/testws",
                        new SOAPLoggingHandler("testws")));
        }

The Webservice constructor takes the following parameters:

 * the web service class (containing the JAX-WS annotations)
 * the web service instance (or Tapestry service, since this will be a
proxy)
 * the name used in 
 * the URL pattern like "/webservice" or "/ws/myws"
 * and a list of handlers to be added

-- 
Chris

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-Tapestry-and-JAX-WS-Metro-tp4884925p4884925.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to