I just make a page and return XML from onActivate. Here is an example

https://github.com/trsvax/Blog/blob/master/src/main/java/com/trsvax/pages/Index.java

The xml.streamWithStyle method takes a JAXB annotated object and does the
rest. In this
example there is a stylesheet to convert the JAXB xml format to rss.

If you need to authenticate just create a filter. I use a filter that looks
in the header for Authorization so I don't have that part in the url. It's
similar to the way Amazon S3 works. This way the pages don't need to worry
about how the authentication happens. 

It's about as easy as it gets and I've implemented quite a few web services
this way.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Web-services-using-Tapestry-tp4974432p4974799.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