cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [RT] zero-code web services from Flow
Date Fri, 06 Feb 2004 19:44:57 GMT
For #2 - See DynamicInvoker in Axis
(http://cvs.apache.org/viewcvs.cgi/ws-axis/java/samples/client/)

-- dims

--- Bertrand Delacretaz <bdelacretaz@apache.org> wrote:
> 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
> 
> 
> 
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Mime
View raw message