views:

27

answers:

0

In axis2.xml, why do you need to specify the phase again in the handler tag?

Why this:

<phaseOrder type="InFlow">
  <phase name="Transport">
    <handler name="RequestURIBasedDispatcher"
             class="org.apache.axis2.engine.RequestURIBasedDispatcher">
      <order phase="Transport"/>
    </handler>
    <handler name="SOAPActionBasedDispatcher"
             class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
      <order phase="Transport"/>
    </handler>
 </phase>
 ...

and not this (we are already in the phase named Transport)?

<phaseOrder type="InFlow">
  <phase name="Transport">
    <handler name="RequestURIBasedDispatcher"
             class="org.apache.axis2.engine.RequestURIBasedDispatcher">
    </handler>
    <handler name="SOAPActionBasedDispatcher"
             class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
    </handler>
 </phase>
 ...

What is the purpose of <order phase="Transport"/> in the handler ?

Thank you!