RE: I post a text XML with Microsoft.XMLHTTP to servlet

2003-10-15 Thread Shapira, Yoav
Howdy, You should be able to test this using either MockObjects or Cactus, before sending it to your clients ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Blackmore, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 2:01 PM To: 'Tomcat Users List'

Re: I post a text XML with Microsoft.XMLHTTP to servlet

2003-10-14 Thread Blackmore, John
Hi, I have the same problem. Can you elaborate on the ..., ie how to extract the XML string from the request? I've tried a few different methods without success. I'm running Tomcat 4.1.24-LE-jdk14 on Solaris. I have a servlet that clients post XML to. One client uses XMLHTTP object to do the post,

RE: I post a text XML with Microsoft.XMLHTTP to servlet

2003-10-14 Thread Shapira, Yoav
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

RE: I post a text XML with Microsoft.XMLHTTP to servlet

2003-10-14 Thread erlis
Try to call your XML in the internet explorer and see if that xml have no errors.. It seems like the xml isn't well formed... Sincerely Erlis Vidal Santos -Original Message- From: Blackmore, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 9:22 AM To: '[EMAIL

RE: I post a text XML with Microsoft.XMLHTTP to servlet

2003-10-14 Thread Blackmore, John
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

RE: I post a text XML with Microsoft.XMLHTTP to servlet

2003-10-10 Thread Shapira, Yoav
Howdy, You need to read the whole request into a String. Then, since you want a DOM document, use a DOM document builder to get it, e.g. String xmlInput = ... Reader reader = new Stringeader(xmlInput); InputSource inputSource = new InputSource(reader); DocumentBuilderFactory dbf =