You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by derkoe <ta...@gmail.com> on 2011/10/09 13:24:21 UTC

[ANN] Tapestry and JAX-WS (Metro)

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org