From: Ryan D. Cuprak

Yes, it is definitely possible to use tomcat as an XMLRPC server. Code in
your servlet:

public void doPost ( HttpServletRequest req , HttpServletResponse res )
throws IOException , ServletException {
     byte[] result = xmlrpc.execute(req.getInputStream());
     res.setContentType("text/html");
     res.setContentLength(result.length);
     OutputStream output = res.getOutputStream();
     output.write(result);
     output.flush();
}

 This code is from O'Reilly's XML-RPC book (ISBN: 0-596-00119-3). The book
also covers using http authentication etc.




Susan McKinley <[EMAIL PROTECTED]> on 05/01/2002 03:20:35 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Can Tomcat be turned into an XmlRpc server ?


(See attached file: C.htm)




Is it possible to turn Apache Tomcat into an XmlRpc server as described
for Zope and Kde at the URL below ?
http://xmlrpc-c.sourceforge.net/xmlrpc-howto/xmlrpc-howto-applist.html

That is, so that each HTTP Post or Get to a URL can be represented
by a corresponding XmlRpc method call.

The alternative appears to be to write XmlRpc handling code in each and
every servlet, which would be quite laborious.

Stephen.



Post your ad for FREE! Yahoo! Canada Personals

Reply via email to