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
ServletInputStream is = request.getInputStream();
doc = m_DocBuilder.parse(is);
}
Where m_DocBuilder created in init() m_DocFactory = DocumentBuilderFactory.newInstance(); m_DocBuilder = m_DocFactory.newDocumentBuilder();
declared as private static DocumentBuilderFactory m_DocFactory = null; private static DocumentBuilder m_DocBuilder = null;
HTH John G
QM wrote:
On Tue, Aug 31, 2004 at 06:15:59PM -0400, Kimmy Lin wrote: : http://URL?xmldoc=<yourXML>...</yourXML> : 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 and all?
-QM
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]