Sorry, I was mistaken - what little content was there was actually another
form element which didn't belong. Looks like my XMLHTTP test app was the
problem. I think I have it working with my second approach below, however I
won't know for sure until the client "tests" it. Needless to say, they
expect it to work right the first time (sigh). 

Thanks for the quick responses!

John

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 9:24 AM
To: Tomcat Users List
Subject: RE: I post a text XML with Microsoft.XMLHTTP to servlet



Howdy,

>Second, I tried to forcibly retrieve characters from the input stream,
one
>by one.
>
>       String xmlDocString = getXMLString((InputStream)
>req.getInputStream());
>       Document document = builder.parse(new
>StringBufferInputStream(xmlDocString));
>
>Note: the getXMLString() function is not very interesting... simply has
a
>loop as follows:
>
>       while( (c=xmlInputStream.read()) > 0 )
>
>When I try this, I get the same error, however I don't get an empty
string
>-
>xmlDocString has what looks like a URL encoded and truncated version of
the
>original string.

This is the approach I had in mind.  Then URL-decode it
(URLDecoder.decode(...)).  Why is it truncated?

Yoav Shapira



************************************************************************** 
This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to