You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by "Mark Proctor (mproctor)" <mp...@cisco.com> on 2002/07/22 15:24:34 UTC
XMLRPC Servlet and config file for handlers
I managed to get the javascript library vcXMLRPC working with modified
version of XmlRpcProxy servlet - I removed the existing handler and
added one of my own. Having to state handlers at compile time is a real
pain and made me realise that really handlers need to be dynamically
added by a configuration file and by other programs in the system. Has
anyone started work on this?
Mark
Re: XMLRPC Servlet and config file for handlers
Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Mark Proctor (mproctor)" <mp...@cisco.com> writes:
> I managed to get the javascript library vcXMLRPC working with modified
> version of XmlRpcProxy servlet - I removed the existing handler and
> added one of my own. Having to state handlers at compile time is a real
> pain and made me realise that really handlers need to be dynamically
> added by a configuration file and by other programs in the system. Has
> anyone started work on this?
Things already work this way; stating handlers at compile time is
unnecessary.
Here's example config from Fulcrum's XML-RPC service:
services.XmlRpcService.handler.file = org.apache.fulcrum.xmlrpc.util.FileHandler
See its code for an example of how to do it:
http://cvs.apache.org/viewcvs/jakarta-turbine-fulcrum/src/java/org/apache/fulcrum/xmlrpc/TurbineXmlRpcService.java?rev=1.1.1.1&content-type=text/vnd.viewcvs-markup
--
Daniel Rall <dl...@finemaltcoding.com>
Re: XMLRPC Servlet and config file for handlers
Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Mark Proctor (mproctor)" <mp...@cisco.com> writes:
> I managed to get the javascript library vcXMLRPC working with modified
> version of XmlRpcProxy servlet - I removed the existing handler and
> added one of my own. Having to state handlers at compile time is a real
> pain and made me realise that really handlers need to be dynamically
> added by a configuration file and by other programs in the system. Has
> anyone started work on this?
Things already work this way; stating handlers at compile time is
unnecessary.
Here's example config from Fulcrum's XML-RPC service:
services.XmlRpcService.handler.file = org.apache.fulcrum.xmlrpc.util.FileHandler
See its code for an example of how to do it:
http://cvs.apache.org/viewcvs/jakarta-turbine-fulcrum/src/java/org/apache/fulcrum/xmlrpc/TurbineXmlRpcService.java?rev=1.1.1.1&content-type=text/vnd.viewcvs-markup
--
Daniel Rall <dl...@finemaltcoding.com>