Hi Eric, Please see my comments in line;
On Thu, May 22, 2008 at 8:53 PM, Hubert, Eric <[EMAIL PROTECTED]> wrote: > Hi, > > how can we send back a fault from an in-sequence? Regarding the Hessian > support, is there a way to generate a Hessian fault? If the incoming message is a hessian message and if you - create a SOAP fault, - set the RESPONSE=true property and - copy the ReplyTo as To as described in the Sample 5<http://synapse.apache.org/Synapse_Samples.html#Sample5>then you will be able to send back a hessian fault. > > Background: > 1) In a switch mediator within the in-sequence we want to send back a > fault for the default case and log this. Can be easily done as described above. > > > 2) If the requested URL does not match with any proxy service > definitions, Synapse sends back a 202 response to the client. If we got > it right synapse always uses the main-sequence if no other sequence > matches. So also for this case we would like to send back a fault from > within the in-sequence of the main-sequence. A minor correction to this at first, if the message is not dispatched to any of the proxy services on Synapse then the message will be directed to the main sequence of synapse. (synapse dose not match over any other sequences but just the proxy services for incoming messages) If you just have proxy services (service mediation only) and no message mediation (messages coming into main sequence), then you can assume a message reaching the main sequence as a fault message and send back a fault, using the same strategy as described above inside the main sequence. Thanks, Ruwan > > > Regards, > Eric > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ruwan Linton http://www.wso2.org - "Oxygenating the Web Services Platform"
