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




Reply via email to