axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <Michele.Mazzu...@ncl.ac.uk>
Subject Re: [Axis2] in-out operation question
Date Wed, 07 Jun 2006 11:52:43 GMT
Yes, so do I :).

Thanks for your advice.


Regards,
Michele

Chamikara Jayalath wrote:
> Hi Michele,
> 
> I'll try to reply all ur mails at once :-)
> 
> 1. Yes. The RelatesTo is set in the Utils.createOutMessageContext() method.
> 
> 2. You cannot get the contexts directly to ur service object if u write
> ur own MessageReceiver. You have to implement that logic. (may be u can
> use the 'getTheImplementationObject' method of the AbstractMessageReceiver).
> 
> 3. Yes. What I mean by the second invocation is the B to C invocation.
> 
> 
> I believe the easiest way for u will be to use a ServiceClient in ur
> service code and doing the B to C invocation.
> 
> 
> Chamikara
> 
> 
> 
> 
> 
> On 6/7/06, *Michele Mazzucco* <Michele.Mazzucco@ncl.ac.uk
> <mailto:Michele.Mazzucco@ncl.ac.uk>> wrote:
> 
>     Apologies for flooding with my messages.
> 
>     Chamikara, when you say 'second invocation', do you mean the C side?
> 
>     Thanks,
>     Michele
> 
>     Chamikara Jayalath wrote:
>     > Hi Michele,
>     >
>     > Currently it seems that this does not work if you use the
>     > RawXMLINOutMessageReceiver. The reason is this message receiver
>     setting
>     > the relatesTo addressing header in the response message. When this
>     > message goes to the Dispatching Phase of the second invocation it
>     will
>     > fail saying that it cannot correlate the message with a
>     OperationContext
>     > object.
>     >
>     > Seems like you hv to write ur own message receiver similar to
>     > RawXMLINOutMessageReceiver but which does not set the relatesTo
>     > property. Or do the second invocation using a ServiceClient.
>     >
>     > Chamikara
>     >
>     >
>     >
>     > On 6/6/06, *Michele Mazzucco* <Michele.Mazzucco@ncl.ac.uk
>     <mailto:Michele.Mazzucco@ncl.ac.uk>
>     > <mailto:Michele.Mazzucco@ncl.ac.uk
>     <mailto:Michele.Mazzucco@ncl.ac.uk>>> wrote:
>     >
>     >     Hi all,
>     >
>     >     suppose a system with 3 elements, A, B and C where B provides
>     a in-out
>     >     operation.
>     >     If A sends a request (fireAndForget of sendRobust) to B,
>     supplying the C
>     >     target as well, is it possible for the service to return the
>     result
>     >     to C
>     >     straight away, that is without creating a ServiceClient object?
>     >
>     >
>     >     // This service is provided by B and it is invoked by A
>     >     public OMElement foo(OMElement payload) {
>     >             // the message context is set
>     >
>     >             // process the payload
>     >
>     >             // use the replyTo if set by A, otherwise set it by using
>     >             // message properties (or some informations included
>     into the
>     >             // payload
>     >
>     >             return result;
>     >     }
>     >
>     >     Does the result reach the node C?
>     >
>     >
>     >     Thanks in advance,
>     >     Michele
>     >
>     >    
>     ---------------------------------------------------------------------
>     >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>     <mailto:axis-user-unsubscribe@ws.apache.org>
>     >     <mailto:axis-user-unsubscribe@ws.apache.org
>     <mailto:axis-user-unsubscribe@ws.apache.org>>
>     >     For additional commands, e-mail: axis-user-help@ws.apache.org
>     <mailto:axis-user-help@ws.apache.org>
>     >     <mailto:axis-user-help@ws.apache.org
>     <mailto:axis-user-help@ws.apache.org>>
>     >
>     >
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>     <mailto:axis-user-unsubscribe@ws.apache.org>
>     For additional commands, e-mail: axis-user-help@ws.apache.org
>     <mailto:axis-user-help@ws.apache.org>
> 
> 

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


Mime
View raw message