easysoa / EasySOA

A light, collaborative platform to make Service Oriented Architecture simple.
http://www.easysoa.org
35 stars 8 forks source link

FraSCAti Velocity for Light Proxy #19

Closed JGuillemotte closed 12 years ago

JGuillemotte commented 13 years ago

Evaluate FraSCAti Velocity for light proxy.

Modify the ligth proxy to use FraSCAti Velocity, to do during the refactoring of esper-frascati-poc project.

Goal is to make a dynamic WSDL to HTML transformation proxy by using a XSLT transformation file.

JGuillemotte commented 13 years ago

Evaluation is OK.

I have made an example using FraSCAti Velocity. In the composite file, need to add this block : `

<service name="Velocity">
  <binding.http xmlns="http://tuscany.apache.org/xmlns/sca/1.0" uri="/pages"/>
</service>

`

Result is to publish on localhost:8090 the page index.html that contains directly the velocity code. Request parameters are accessed simply as a standard VTL variable. By adding a reference tag in the Velocity component, we have acces in the index.html page to the reference implementation.

JGuillemotte commented 13 years ago

Also wrote unit test of velocity-scripted call using a dynamically generated form (from the wsdl) : org.openwide.easysoa.test.FormGeneratorTester .

What will be addressed from now on :

mdutoo commented 12 years ago

Velocity more fully used in new, object-model based scaffoldingProxy, see https://github.com/easysoa/EasySOA/issues/43