You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Wouter Cloetens <wc...@raleigh.ibm.com> on 2001/01/04 20:56:51 UTC
Messaging/MIME/Transport hook (was: Re: V2.1 ToDo/Wish List)
A bit of detail for anybody else who might be interested...
On Thu, 4 Jan 2001 06:49:59 -0500, Doug Davis wrote:
>1 - The issues between MIME support and Transport Hooks
> needs to be resolve/fixed. Wouter and I have been
> talking about this and its being looked at.
I'd extend the scope of that statement to getting messaging to work
again, with MIME support. The only place where the transport hook is
broken is at the point where the outgoing Messaging response needs to
be run through the transport hook filter. That didn't make sense the
way it worked before (which is why I ripped it out...). A response from
Messaging may be non-XML, even non-textual, yet the transport hook
filter tried to mangle it through a Reader, potentially corrupting the
data.
The idea is to get Messaging to send back a MIME part (or multipart) as
its response. That means we'll know the Content-Type of the (root MIME
part of) the response. If the primary type is "text", we'll run it
through the outgoing transport hook filter, if not, we'll bypass it.
This has quite a few implications. I'll perform phase 2 of the MIME
support - the full change of all [de]serialiser interfaces to carry the
MIME context (rather than phase 1's kludge of associating a SOAPContext
object with the current thread). The pluggable provider mechanism
should be altered to accept this request and response context too. The
implementing services should optionally support this too, so they can
access other MIME parts of the request or set MIME parts in the
response. The latter is what Messaging needs to get fixed...
While we're at it, allowing the implementing service access to the
session (transport-specific or (possibly later) a generic session
object) should be easy too.
bfn, Wouter
--
http://www.workspot.net/~zombie/soap/
My opinions are irrelevant. They will be assimilated by my employer.