You can use smallx pipelines to implement more complicated web services.
It will also allow you to interface with other web services quite easily.
You can also use it inside JSP in several different ways depending on your application.
The netbeans module will let you run the pipelines inside netbeans just like you do XSLT.
You'll need a distribution of the smallx examples to do this inside a web applications.