Hi Sihem
> <header name="To" expression="get-property('ReplyTo')"/>
> I removed this configuration line and this exception is no longer
> thrown. The client receives the error message. So what is the purpose
> of this config line ?
The exact effect of the above line is to replace the "To" address of the
current message with the "ReplyTo" address. Thus this will depend on the
fact whether the current message has a WS-A ReplyTo header or not. The
samples we provide use WS-A in most of the scenarios. An equivalent
statement for the above would be the following - which implies that the
"To" address of the current message should be just removed. Note that
when we change a message in its direction (i.e. a request being
converted into a response due to some error etc) we clear any explicit
"To" address from the message and mark it as a "RESPONSE". This way
Synapse knows that its supposed to go back to the client/requester as a
response (i.e. on the same socket for http/s etc)
<header name="To" action="remove"/>> The only remaining exception is : > der] WARN FaultHandler Fault handler - setting ERROR_MESSAGE : > java.net.ConnectException: Connection refused I believe the above happens since you do not have the port 8081 (i.e. secure2 endpoint) up at the time you ran the configuration? asankha --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
