You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by pat <pa...@xvalheru.org> on 2007/01/30 16:33:10 UTC

what's difference between operation and messageReceiver

Hi,

I want to know, if there's somebody who can explain the difference between:
<messageReceivers>
<messageReceiver mep="..." class="..."/>
</messageReceivers>

and

<operation name="echo">
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
<actionMapping>urn:echo</actionMapping>
</operation>

Yes, I've took these from the service.xml in different samples.

Thanks a lot

     Pat


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: what's difference between operation and messageReceiver

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi pat ;
Once you define Message receivers like below in services.xml

<messageReceivers>
<messageReceiver mep="..." class="..."/>
</messageReceivers>

Then , you do not need to go and add the message receivers for each operation. Axis2 will automatically set the correct MR to the operation depending on the MEP.

But still you want to override the MR, then you can define that inside the operation.

Thanks
Deepal


>Hi,
>
>I want to know, if there's somebody who can explain the difference between:
><messageReceivers>
><messageReceiver mep="..." class="..."/>
></messageReceivers>
>
>and
>
><operation name="echo">
><messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
><actionMapping>urn:echo</actionMapping>
></operation>
>
>Yes, I've took these from the service.xml in different samples.
>
>Thanks a lot
>
>     Pat
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org