You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Supun Kamburugamuva <su...@gmail.com> on 2008/08/19 10:32:03 UTC

Sending and receiving separate messages from a module

Hi all,

I have a module which has a handler in the out flow. When a message is sent
by a client, this module needs to send separate messages prior to sending
the the original message. What is the best way to send these messages?
Should I use the service client, operation client or any other means of
sending a message through axis2/C?

Thanks,
Supun.
Software Engineer, WSO2 Inc

Re: Sending and receiving separate messages from a module

Posted by Damitha Kumarage <da...@gmail.com>.
You can use engine_send if you need to make your message go through all 
the phases. If not you can use transport_sender_invoke. Using svc_client 
from a handler is a overkill.

thanks
Damitha
Supun Kamburugamuva wrote:
> Hi all,
>
> I have a module which has a handler in the out flow. When a message is 
> sent by a client, this module needs to send separate messages prior to 
> sending the the original message. What is the best way to send these 
> messages? Should I use the service client, operation client or any 
> other means of sending a message through axis2/C?
>
> Thanks,
> Supun.
> Software Engineer, WSO2 Inc


-- 
__________________________________________________________________

Damitha Kumarage
http://people.apache.org/
__________________________________________________________________

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


Re: Sending and receiving separate messages from a module

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Supun Kamburugamuva wrote:
> Hi all,
>
> I have a module which has a handler in the out flow. When a message is 
> sent by a client, this module needs to send separate messages prior to 
> sending the the original message. What is the best way to send these 
> messages? Should I use the service client, operation client or any 
> other means of sending a message through axis2/C?

Sandesha has done this. Please have a look into the Sandesha code.

Samisa...

>
> Thanks,
> Supun.
> Software Engineer, WSO2 Inc
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.138 / Virus Database: 270.6.5/1619 - Release Date: 8/18/2008 5:39 PM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


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


Re: Sending and receiving separate messages from a module

Posted by Uthaiyashankar <sh...@wso2.com>.
Supun Kamburugamuva wrote:
> Hi all,
>
> I have a module which has a handler in the out flow. When a message is 
> sent by a client, this module needs to send separate messages prior to 
> sending the the original message. What is the best way to send these 
> messages? Should I use the service client, operation client or any 
> other means of sending a message through axis2/C?

Sandesha and Rampart have similar functionality. We are using 
ServiceClient for that.

Regards,
Shankar

>
> Thanks,
> Supun.
> Software Engineer, WSO2 Inc


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