You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rpc-dev@xml.apache.org by Andrew Evers <ae...@redwood.nl> on 2002/09/13 17:06:01 UTC
Embedding XML-RPC into other frameworks.
Hi guys,
There seems to be a need for information on how to embed the XML-RPC
framework into a HTTP server, and a servlet engine in particular. I
am considering writing a servlet (in .contrib or .servlet sub-pacakage)
that uses the new classes to embed XML-RPC without using the
XmlRpcServer.
Discussion between Dan, Adam and Rob came down to a suggestion from
Dan:
> <servlet>
> <servlet-name>RPC2</servlet-name>
> <servlet-class>
> org.apache.xmlrpc.XmlRpcServlet
> </servlet-class>
> <init-param>
> <param-name>handler.Foo</param-name>
> <param-value>org.xwt.foo.bar</param-value>
> </init-param>
> </servlet>
The init method would create an instance for handler.* parameters and
then add it to a DefaultHandlerMapping. This mapping would be used
to create an XmlRpcWorker. The servlet doPost() method would
be a call XmlRpcWorker.execute() with the appropriate context.
I might even write this up as an example of how to embed XML-RPC?
Andrew.
Re: Embedding XML-RPC into other frameworks.
Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Andrew Evers" <ae...@redwood.nl> writes:
> Hi guys,
>
> There seems to be a need for information on how to embed the XML-RPC
> framework into a HTTP server, and a servlet engine in particular.
Yeah, it would be terrific if you could produce an xdoc describing how
to do this.
> I am considering writing a servlet (in .contrib or .servlet
> sub-pacakage) that uses the new classes to embed XML-RPC without
> using the XmlRpcServer.
.contrib is yucky, I'd prefer .servlet if you're going to add a new
sub-package.
> Discussion between Dan, Adam and Rob came down to a suggestion from
> Dan:
>
> > <servlet>
> > <servlet-name>RPC2</servlet-name>
> > <servlet-class>
> > org.apache.xmlrpc.XmlRpcServlet
> > </servlet-class>
> > <init-param>
> > <param-name>handler.Foo</param-name>
> > <param-value>org.xwt.foo.bar</param-value>
> > </init-param>
> > </servlet>
>
> The init method would create an instance for handler.* parameters and
> then add it to a DefaultHandlerMapping. This mapping would be used
> to create an XmlRpcWorker. The servlet doPost() method would
> be a call XmlRpcWorker.execute() with the appropriate context.
>
> I might even write this up as an example of how to embed XML-RPC?
That sounds excellent.
--
Daniel Rall <dl...@finemaltcoding.com>
Re: Embedding XML-RPC into other frameworks.
Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Andrew Evers" <ae...@redwood.nl> writes:
> Hi guys,
>
> There seems to be a need for information on how to embed the XML-RPC
> framework into a HTTP server, and a servlet engine in particular.
Yeah, it would be terrific if you could produce an xdoc describing how
to do this.
> I am considering writing a servlet (in .contrib or .servlet
> sub-pacakage) that uses the new classes to embed XML-RPC without
> using the XmlRpcServer.
.contrib is yucky, I'd prefer .servlet if you're going to add a new
sub-package.
> Discussion between Dan, Adam and Rob came down to a suggestion from
> Dan:
>
> > <servlet>
> > <servlet-name>RPC2</servlet-name>
> > <servlet-class>
> > org.apache.xmlrpc.XmlRpcServlet
> > </servlet-class>
> > <init-param>
> > <param-name>handler.Foo</param-name>
> > <param-value>org.xwt.foo.bar</param-value>
> > </init-param>
> > </servlet>
>
> The init method would create an instance for handler.* parameters and
> then add it to a DefaultHandlerMapping. This mapping would be used
> to create an XmlRpcWorker. The servlet doPost() method would
> be a call XmlRpcWorker.execute() with the appropriate context.
>
> I might even write this up as an example of how to embed XML-RPC?
That sounds excellent.
--
Daniel Rall <dl...@finemaltcoding.com>
Re: Embedding XML-RPC into other frameworks.
Posted by josh lucas <lu...@collab.net>.
On Friday, September 13, 2002, at 08:06 AM, Andrew Evers wrote:
> Hi guys,
>
> There seems to be a need for information on how to embed the XML-RPC
> framework into a HTTP server, and a servlet engine in particular. I
> am considering writing a servlet (in .contrib or .servlet sub-pacakage)
> that uses the new classes to embed XML-RPC without using the
> XmlRpcServer.
>
> Discussion between Dan, Adam and Rob came down to a suggestion from
> Dan:
>
>> <servlet>
>> <servlet-name>RPC2</servlet-name>
>> <servlet-class>
>> org.apache.xmlrpc.XmlRpcServlet
>> </servlet-class>
>> <init-param>
>> <param-name>handler.Foo</param-name>
>> <param-value>org.xwt.foo.bar</param-value>
>> </init-param>
>> </servlet>
>
> The init method would create an instance for handler.* parameters and
> then add it to a DefaultHandlerMapping. This mapping would be used
> to create an XmlRpcWorker. The servlet doPost() method would
> be a call XmlRpcWorker.execute() with the appropriate context.
>
> I might even write this up as an example of how to embed XML-RPC?
>
>
If it works out well, definitely write it up.
josh
Re: Embedding XML-RPC into other frameworks.
Posted by josh lucas <lu...@collab.net>.
On Friday, September 13, 2002, at 08:06 AM, Andrew Evers wrote:
> Hi guys,
>
> There seems to be a need for information on how to embed the XML-RPC
> framework into a HTTP server, and a servlet engine in particular. I
> am considering writing a servlet (in .contrib or .servlet sub-pacakage)
> that uses the new classes to embed XML-RPC without using the
> XmlRpcServer.
>
> Discussion between Dan, Adam and Rob came down to a suggestion from
> Dan:
>
>> <servlet>
>> <servlet-name>RPC2</servlet-name>
>> <servlet-class>
>> org.apache.xmlrpc.XmlRpcServlet
>> </servlet-class>
>> <init-param>
>> <param-name>handler.Foo</param-name>
>> <param-value>org.xwt.foo.bar</param-value>
>> </init-param>
>> </servlet>
>
> The init method would create an instance for handler.* parameters and
> then add it to a DefaultHandlerMapping. This mapping would be used
> to create an XmlRpcWorker. The servlet doPost() method would
> be a call XmlRpcWorker.execute() with the appropriate context.
>
> I might even write this up as an example of how to embed XML-RPC?
>
>
If it works out well, definitely write it up.
josh