Hi Matthew ;

There are two main ways to define message receivers for a service
 - define message receivers inside the operation element
 - define the message receivers at the service level alone with the mep

It is a completely valid use case to define message receivers for the
operation inside the operation tag.

And think abt the scenario where you have a java class with 10 methods ,
then defining all of them is bit difficult in services.xml as operation.
So the best thing you can do is define the message receivers alone with
the mep , then at the deployment time Axis2 will decide the mep of the
operation by looking at the java class  , and set the correct message
receiver. And you can define message receiver for a service as follows;

<messageReceivers>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only";
                        
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out";
                        
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
    </messageReceivers>

>The examples in the documentation talk about the 
>
><messageReceiver
>class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>
>or what ever other reciever you want to use....
>
>Inside each operation definition
>
>However the auto generated services.xml from the
>wsdl2java does not have a <mesage reciever defined>
>
>Is this because:
>    1. It's not required or 
>    2. Its up to the dumb arse programmer like my self
>       to decide on what it should be? and Include it 
>       into the services.xml operations?
>
>
>Matt.
>
>
>
>
>Send instant messages to your online friends http://au.messenger.yahoo.com 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to