You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Dave Schaumann <ds...@rdc.vanteon.com> on 2000/10/03 18:16:58 UTC
[PATCH] RPCRouterServlet.doGet behavior
Just a small patch so that a browser will recognize the output of
RPCRouterServlet.doGet as text/html, rather than the default
text/plain...
-Dave
--- RPCRouterServlet.java.orig Fri Aug 18 13:25:32 2000
+++ RPCRouterServlet.java Tue Oct 3 11:57:06 2000
@@ -109,9 +109,11 @@
throws ServletException, IOException {
PrintWriter out = res.getWriter ();
+ res.setContentType("text/html");
+ out.println ("<html><head><title>SOAP RPC Router</title></head>");
out.println ("<body><h1>SOAP RPC Router</h1>");
out.println ("<p>Sorry, I don't speak via HTTP GET- you have to
use");
- out.println ("HTTP POST to talk to me.</p></body>");
+ out.println ("HTTP POST to talk to me.</p></body></html>");
}
public void doPost (HttpServletRequest req, HttpServletResponse res)
--
Dave Schaumann Vanteon
Software Developer 2851 Clover St.
dschaumann@vanteon.com Pittsford, NY 14534 USA
Terra (Sol III), Milky Way
(716) 248-0510 x312
Getting. Details. Right. Takes. Time.