Patrick Duflot wrote:
We have a message broker that acts as a gateway between our client and
our service.
This broker sends in-only message to our service. Our service is
supposed to asynchronously send a response to the broker IP address
(which is known by configuration) and move the wsa:replyto of the
incoming message to the wsa:to header of the outgoing message. This
original wsa:replyto is a logical queue name of the broker.
One obvious workaround is to use queue names of the form
http://broker_address/queue_name, but this would require to modify the
broker code and I am not supposed to do that.
Any suggestion would be greatly appreciated.
In Axis2/C http_transport_sender code there is a code block like this
/ transport_url = axis2_msg_ctx_get_transport_url(msg_ctx, env);
if(transport_url)
{
AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "transport_url:%s",
transport_url);
epr = axis2_endpoint_ref_create(env, transport_url);
}
else
{
/* when transport url is not available in msg_ctx */
axis2_endpoint_ref_t *ctx_epr = axis2_msg_ctx_get_to(msg_ctx, env);
/If you somehow manage to call msg_ctx_set_transport_url from your
client then message will be sent to transport_url while maitaining
addressing:to in the message.(As apparent from above code)
If you use op_client instead of service client you may be able to obtain
the message context so that you can set transport url. I don't remember
exact detail but you can try
Thanks,
Damitha
Thank you
Patrick
On Thu, May 6, 2010 at 10:05 AM, Damitha Kumarage <dami...@wso2.com
<mailto:dami...@wso2.com>> wrote:
Patrick Duflot wrote:
Hi list,
Is there a way to specify two distinct information for the
physical addressing and the logical address ?
For example, I want to send a request to an url, let's say
http://172..22.13.3/axis2/services/MyService.
And I want that the wsa:To field contains this logical name :
queueXT23.
Why you need to do this?. Perhaps we may be able to suggest a
workaround.
Thanks,
Damitha
Thank you
Patrick
--
__________________________________________________________________
Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/
blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscr...@axis.apache.org
<mailto:c-user-unsubscr...@axis.apache.org>
For additional commands, e-mail: c-user-h...@axis.apache.org
<mailto:c-user-h...@axis.apache.org>
--
__________________________________________________________________
Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/
blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscr...@axis.apache.org
For additional commands, e-mail: c-user-h...@axis.apache.org