Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread Kimmy Lin
ough. But Request#getInputStream() does provide the request body w/o the header. kimmy - Original Message - From: "QM" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 6:27 PM Subject: Re: How do I read only the XM

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread John Gentilin
Try this, override service and not doGet / doPost where the code is public void service( ServletRequest request, ServletResponse response ) throws javax.servlet.ServletException, java.io.IOException { Document doc; // Create an InputStream to read in the XML data to be parsed Servle

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 06:15:59PM -0400, Kimmy Lin wrote: : http://URL?xmldoc=... : request.getParameter("xmldoc"); The OP may run into some limits with that, unless those are very small XML docs. =) Doesn't Request#getInputStream() provide the body? -or does it get the whole request, headers an

Re: How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread Kimmy Lin
Parameter("xmldoc"); to get the xml data. kimmy - Original Message - From: "tom ly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 3:16 PM Subject: How do I read only the XML data in doPost(req,res)? > I'm receivi

How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread tom ly
I'm receiving a HTTP POST request containg XML data and want to process the data in the doPost method of my servlet. When I do request.getContentLength(), it gives the length of the entire request including the HTTP header etc, but I only want the XML portion of it. I can't find any Java metho

How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread tom ly
I'm receiving a HTTP POST request containg XML data and want to process the data in the doPost method of my servlet. When I do request.getContentLength(), it gives the length of the entire request including the HTTP header etc, but I only want the XML portion of it. I can't find any Java metho