Return-Path: Delivered-To: apmail-ws-synapse-dev-archive@www.apache.org Received: (qmail 3028 invoked from network); 18 Oct 2007 03:41:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Oct 2007 03:41:45 -0000 Received: (qmail 73069 invoked by uid 500); 18 Oct 2007 03:41:33 -0000 Delivered-To: apmail-ws-synapse-dev-archive@ws.apache.org Received: (qmail 73034 invoked by uid 500); 18 Oct 2007 03:41:33 -0000 Mailing-List: contact synapse-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: synapse-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list synapse-dev@ws.apache.org Received: (qmail 73023 invoked by uid 99); 18 Oct 2007 03:41:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2007 20:41:33 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 03:41:34 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IiMG1-0003K4-NY for synapse-dev@ws.apache.org; Wed, 17 Oct 2007 20:41:13 -0700 Message-ID: <13267546.post@talk.nabble.com> Date: Wed, 17 Oct 2007 20:41:13 -0700 (PDT) From: balaji hari To: synapse-dev@ws.apache.org Subject: Re: Access to validation error message In-Reply-To: <46F7F447.9080002@wso2.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: to.haribalaji@gmail.com References: <12830101.post@talk.nabble.com> <672a01200709211933g1231cd96q2c8f3a6a3e5f7ed2@mail.gmail.com> <46F53144.8000100@wso2.com> <672a01200709220932l16af4d5h8accd0ea00abec64@mail.gmail.com> <12862228.post@talk.nabble.com> <46F7F447.9080002@wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org Validation feature was working good with synapse build taken from svn on 9/25/2007. But it seems to be broken in oct - 9 / oct 12 build. After executing on-fail mediator synapse is not sending the validation error back. Instead it forwards the message to server configured in send mediator! I have attached synapse configuration. Balaji http://www.nabble.com/file/p13267546/websvc_raterank_validate.xml websvc_raterank_validate.xml asankha wrote: > > Hi Balaji > > We are targetting end of October as it stands now > > asankha > > balaji hari wrote: >> Hi Ruwan, >> >> Great it works! Can we know the approximate release schedule for >> Synapse1.1? >> >> Balaji >> >> >> >> Ruwan Linton wrote: >> >>> Hi Asankha, >>> >>> Thanks for pointing this out, but when I tried this, ERROR_MESSAGE >>> property >>> was not set on to the MC in the validate mediator failure. >>> >>> This is because the Validate mediator is handling the failure cases >>> inside >>> itself (not propagates out) and mediate using the onfail sequence in >>> case >>> of >>> a validation failure. There fore our ErrorHandler will not be invoked in >>> the >>> validate failure case and this property wont be set in to the MC. >>> >>> So, I had to change the validate mediator code to set that property >>> inside >>> the mediator itself. I have commited this change. >>> >>> Balaji, if you get a build of the current SVN head, you will be able to >>> use >>> this property explained by Asankha. >>> >>> Thanks, >>> Ruwan >>> >>> On 9/22/07, Asankha C. Perera wrote: >>> >>>> Balaji >>>> >>>> Did you check the "ERROR_MESSAGE" property after the validation >>>> failure? >>>> This should contain the text from the schema validator. Check >>>> http://ws.apache.org/synapse/Synapse_Configuration_Language.html for >>>> the >>>> reference to the above property - we will enhance the documentation and >>>> clearly exposes such properties in 1.1 release. >>>> >>>> Ruwan - lets check the above before a JIRA is opened, and if it needs >>>> an >>>> improvement lets open a new JIRA >>>> >>>> asankha >>>> >>>> Ruwan Linton wrote: >>>> >>>> Hi Balaji, >>>> >>>> AFAIK, this should go to the improvements list. Can you raise an >>>> improvement JIRA on this. We will be able to get this in to the >>>> 1.1release which is coming soon. If you can try nightly builds or build >>>> from >>>> source we will be able to provide this functionality within next week. >>>> >>>> Thanks for the information, >>>> >>>> Thanks, >>>> Ruwan >>>> >>>> On 9/22/07, balaji hari wrote: >>>> >>>>> We tried to use validate mediator for validating XML against schema >>>>> for >>>>> web >>>>> service. >>>>> How do we access the validation error messages generated in >>>>> ValidateMediator? >>>>> >>>>> Synapse1.0 sample_7 provides a way for generating static error >>>>> message. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Any pointers or suggestions would be greatly appreciated. >>>>> >>>>> Thanks in advance >>>>> Balaji >>>>> -- >>>>> View this message in context: >>>>> >>>>> >>>> http://www.nabble.com/Access-to-validation-error-message-tf4498668.html#a12830101 >>>> >>>>> Sent from the Synapse - Dev mailing list archive at Nabble.com. >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org >>>>> For additional commands, e-mail: synapse-dev-help@ws.apache.org >>>>> >>>>> >>>>> >>>> -- >>>> Ruwan Linton >>>> http://www.wso2.org - "Oxygenating the Web Services Platform" >>>> >>>> >>>> >>> -- >>> Ruwan Linton >>> http://www.wso2.org - "Oxygenating the Web Services Platform" >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Access-to-validation-error-message-tf4498668.html#a13267546 Sent from the Synapse - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org For additional commands, e-mail: synapse-dev-help@ws.apache.org