synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera (JIRA)" <>
Subject [jira] Resolved: (SYNAPSE-52) Synapse should provide an option to change just the transport url
Date Mon, 12 Mar 2007 05:56:09 GMT


Asankha C. Perera resolved SYNAPSE-52.

       Resolution: Fixed
    Fix Version/s: 1.0-RC1

This is already possible with the property mediator. The header mediator is only concerned
with SOAP headers - so it is the property mediator that should handle this - as the TransportURL
is a Axis2 message context property

 <property name="TransportURL" value="http://localhost:9000/axis2/services/SimpleStockQuoteService"

> Synapse should provide an option to change just the transport url
> -----------------------------------------------------------------
>                 Key: SYNAPSE-52
>                 URL:
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.91
>         Environment: WinXp, Jdk1.5
>            Reporter: Charitha Kankanamge
>             Fix For: 1.0-RC1
> This request has been discussed through mailing list and I'm creating a Jira issue in
order to track it properly. Please see the following email conversation.
> ==========================================================================================================================
> Paul Fremantle wrote: 
> I agree that <header name="To" value="http://localhost:9000/axis2/services/SecureStockQuoteService3"/>
> SHOULD change the wsa:To header. I think maybe we need another option
> to change just the transport URL (e.g.)
> <header name="TransportURL"
> value="http://localhost:9000/axis2/services/SecureStockQuoteService3"/>
> This could be useful as it would allow us to route the message through
> several intermediaries.
> Paul
> ==============================================================================================================================
> On 1/12/07, Charitha Kankanamge <> wrote:
> Hi all,
>  I'm a newbie to Synapse and currently going through the samples to
>  understand the functionality of the application.
> I observed the following behavior in Synapse when trying to execute the
> sample 50 included in the Synapse 0.91 distribution.
>  I went through the pre-requisites section of the Sample 50 and followed
>  all the steps correctly. Then the stockquote client was executed using
>  the ant script (ant stockquote).
> I noticed the following messages logged in the Synapse console. 
> HttpConnection-8080-1] DEBUG HeaderMediator - *Setting header : To to :
> http://localhost:9000/axis2/services/SecureStockQuoteService3*
> [HttpConnection-8080-1] DEBUG SendMediator - Send mediator :: mediate()
> [HttpConnection-8080-1] DEBUG SendMediator - Sending message to endpoint
>  :: name  = secure resolved address = http://localhost: 9000/axis2/services/SecureStockQuoteService3
> [HttpConnection-8080-1] DEBUG SendMediator - *Sending To:
> http://localhost:9000/axis2/services/SecureStockQuoteService3*
> [HttpConnection-8080-1] DEBUG SendMediator - SOAPAction: urn:getQuote
> [HttpConnection-8080-1] DEBUG SendMediator - Body :
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:wsa=""
> xmlns:soapenv="">
> <soapenv:Header>*<wsa:To>http://localhost:9000/axis2/services/SimpleStockQuoteService</wsa:To>*<wsa:ReplyTo><wsa:Address></wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:626983F478AE82EC4C11
>  68579112735</wsa:MessageID><wsa:Action>urn:getQuote</wsa:Action></soapenv:Header>
> <soapenv:Body><m0:getQuote
>  xmlns:m0="http://services.samples/xsd"><m0:request><
> m0:symbol>IBM</m0:symbol></m0:request></m0:getQuote></soapenv:Body></soapenv:Envelope>
> According to the Synapse configuration file of this sample, It sets the header http://localhost:9000/axis2/services/SecureStockQuoteService3
> sends securely with enabled addressing. It is clearly seen in the above Synapse debug
messages. However What I'm concerned is the ws-addressing header in the Soap envelope. It
is addressed to http://localhost:9000/axis2/services/SimpleStockQuoteService eventhough Synapse
sets the header to
>  http://localhost:9000/axis2/services/SecureStockQuoteService3.
> I would like to know whether this is an acceptable behavior in message
> transmission. 
> Thanks and regards
> Charitha

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message