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
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 <[EMAIL PROTECTED]> 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.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]