|
From: Visva V. <vk...@ho...> - 2002-12-25 03:31:59
|
Hi CY,
Even before it reaches the receiver, the exception is thrown.
I did not echo the message back initially (just wrote it to a file).
When the message is sent out the first time (to the receiver):
In httservlet.java send method, I logged the content type. It
correctly says "text/xml". Once SoapConnection.call is called it
throws an exception and that is where the "absent content type"
comes from. This is why it is confusing.
Is it possible that I have a wrong version of the jax libraries.
I am using the one that was downloaded from msh (cvs).
Regards,
Visva
>From: "Ng Chi Yuen [Cyng]" <cy...@cs...>
>To: Visva Visvanathan <vk...@ho...>
>CC: <ebx...@li...>
>Subject: Re: [ebxmlms-develop] Re: Absent content type error
>Date: Tue, 24 Dec 2002 21:00:09 +0800 (CST)
>
>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
>----------------------------------------------------------------------------
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|