On Nov 8, 2012, at 5:28 AM, dominic <[email protected]> wrote: > hi! > > i want to create dynamically webservices on the server-side. the webservice > should be executed in rhino (javascript), the data is collected out of a > database and already parsed with rhino. (function names, parameter, etc.) > which steps i have to take to create webservices out of my javascript files? > > i think i have to create some kind of proxy java class to run javascript > code by method call. but i want to provide an exactly method/operation > description to the client side by wsdl. so i have to create my own service > layer, isnt it? how do i create multible services with my own service layer? > > I think i have to overwrite / extend the ServiceFacoryBean to create the > ServiceInfo (InterfaceInfo, BindingsInfo and EndpointInfo). But how do i > create this objects correctly? What have to be implemented by me to create > this JavaScriptProxyWebServiceService ? > > best regads and thank you for your help
It might be even easier than you think. CXF does have some built in support for using Rhino to expose services written in javascript. See: http://cxf.apache.org/docs/javascript.html and the js_provider sample in the cxf download. That may provide some starting points. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
