synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evanthika Amarasiri (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SYNAPSE-52) Synapse should provide an option to change just the transport url
Date Tue, 13 May 2008 03:18:55 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596260#action_12596260
] 

Evanthika Amarasiri commented on SYNAPSE-52:
--------------------------------------------

As per Asankha, the TransportURL can be set using the property mediator. Tested on 1.2_SNAPSHOT.
Please try out your configuration using the property mediator and see if the intended scenario
is achieved. 

The issue can be closed.

> Synapse should provide an option to change just the transport url
> -----------------------------------------------------------------
>
>                 Key: SYNAPSE-52
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-52
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.91
>         Environment: WinXp, Jdk1.5
>            Reporter: Charitha Kankanamge
>             Fix For: 1.0-RC1-B1
>
>
> 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 <charitha@wso2.com> 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="http://www.w3.org/2005/08/addressing"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Header>*<wsa:To>http://localhost:9000/axis2/services/SimpleStockQuoteService</wsa:To>*<wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</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
and
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message