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. (See the
bold text)

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. The synapse_sample_50.xml file is attached here with for
your convenience.

Thanks and regards
Charitha



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to