You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Eran Chinthaka <ch...@opensource.lk> on 2004/12/16 07:32:38 UTC
[Axis2] Transport info in MC
Hi all,
This has some connection with the thread "WS-Addressing and Axis2". But here
I'm specifically pointing the addressing things with transport stuff.
Some where in Axis engine we have to create a TransportSender. For this to
happen, some info must be there in somewhere (say in msgctx) and anyone in
the axis engine should be able to modify or read these info.
So I propose to have following things in the msgctx for that.
To --> URL
>From --> URL
faultTo --> URL
replyTo --> URL
These are the same things found under addressing, but mind u these are *not*
EPRs as defined in the addressing spec. These are just URIs. (EPR has more
things other than the address, which we do not need this for this)
The first person who knows about this information is the TransportReciever.
He will fill whatever info he knows about to, from, faultTo and replyTo
(most probably transport doesn't know anything abt faultTo and replyTo). It
might only know "from" address, so he will fill "from" in the msgctx. And he
will put the outputStream to the property bag in the msgctx.
If there are any addressing handlers, they will replace the above values in
the msgctx from the values it extracted from SOAPEnvelope. And if there are
RM handlers or anything, they also can change the values.
Ultimately, when TransportSender is to be created either to send the
response or the fault, the TransportSender will be created by the values
found in the msgctx.
<see the attached image for further clarifications>
For example, to send the response, if there is a value in the replyTo, a
TransportSender will be created with the replyTo. If there is no replyTo ...
then these are the rules found in the addressing spec.
If there is only "from" field, we have to check whether the outputStream in
the propertyBag is also pointing to the same place. If yes, use that
outputStream to send the response. This is how we can support no-addressing
handler scenario.
So if we use this method, we don't have to keep the outputStream initially
created. The provider or the sender (this has to be decided in the engine
discussion) who created the TransportSender will check whether he need this
outputStream. If he doesn't need, that means, some addressing values have
been populated in the msgctx, then he can flush the outputStream. This will
send the 202 or whatever to client.
Thoughts and Comments ??
Thankx and Regards,
-- Eran Chinthaka