|
From: Ng C. Y. [Cyng] <cy...@cs...> - 2002-12-24 13:00:28
|
Hi Visva,
> The receiver servlet basically looks the same as the one you attached. I am
> attaching it herewith. I am also sending the stack trace on the Tomcat side
> - the one I got immediately after I ran Test case 1.
^^^^^^^^^^^
Test case 1? Do you mean Test1.java in test/ directory? If so,
the test case may be out of synchronization during development and it may
not work properly.
> 1. I am running Tomcat 4.0.4.
> 2. The error is deterministic (repeatable).
Anyway, there are two problems in your TestServlet.java :
(1) response.setContentType("text/html") : it should be "text/xml", right?
The receiving servlet seems to echo the message back to the sender.
The echoed message will be further processed by the sender. If you send
back a html message, exception will be thrown.
(2) In case there is an attachment in the sending message, the echoed
message should have a "Content-Type" being
"multipart/related; type=text/xml; boundary=...." as it is a MIME
message. This multipart content type should be set by you
accordingly.
Regards,
CY
----------------------------------------------------------------------------
Ng Chi Yuen, CY. cy...@ce... http://www.cecid.hku.hk/
Technology Officer,
Centre for E-Commerce Infrastructure Development,
The University of Hong Kong
----------------------------------------------------------------------------
|