cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject [RT] zero-code web services from Flow
Date Fri, 06 Feb 2004 18:00:10 GMT
Based on http://wiki.cocoondev.org/Wiki.jsp?page=FlowAndWebServices, we 
talked a bit about this on IRC today and I did some research.

It looks like the "only" things missing are:

a) A rhino adapter (written in java, rhino extension), which accepts 
any method name and number of parameters, and delegates to a java 
InvocationHandler's invoke() method (or wrapper).

Rhino apparently provides all interfaces to do this, along with example 
implementations and/or base classes.

b) The actual InvocationHandler, which uses a web service's WSDL to 
find out about method names and signatures.

IIUC Axis does this painlessly.


This would allow Flow scripts to access web services transparently 
without having to write any code outside of flow, something like:

var parcelService = 
wsHelper.loadWebService('http://shipping.com/ws/parcelservice?WSDL');
parcelService.register(username,password);

At which point the rhino adapter is invoked and delegates to the java 
InvocationHandler which uses Axis to call the web service.

WDYT?

-Bertrand





Mime
View raw message