ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ryan.cup...@kodak.com
Subject Re: Can Tomcat be turned into an XmlRpc server ?
Date Wed, 01 May 2002 13:46:56 GMT

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 <susiemckinley@yahoo.ca> on 05/01/2002 03:20:35 AM

Please respond to rpc-user@xml.apache.org

To:   rpc-user@xml.apache.org
cc:
Subject:  Can Tomcat be turned into an XmlRpc server ?


(See attached file: C.htm)





Mime
View raw message