[prev in list] [next in list] [prev in thread] [next in thread] 

List:       synapse-dev
Subject:    Re: Access to validation error message
From:       "Asankha C. Perera" <asankha () wso2 ! com>
Date:       2007-09-24 17:42:47
Message-ID: 46F7F447.9080002 () wso2 ! com
[Download RAW message or body]

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 <asankha@wso2.com> 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 <to.haribalaji@gmail.com > 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.
>>>>
>>>> <definitions xmlns=" http://ws.apache.org/ns/synapse">
>>>>     <localEntry key="validate_schema" src="file:shipment.xsd"/>
>>>>     <in>
>>>>         <validate>
>>>>             <schema key="validate_schema"/>
>>>>             <on-fail>
>>>>                 <!-- if the request does not validate againt schema
>>>> throw a
>>>> fault -->
>>>>                  <makefault>
>>>>                                         <code value="tns:Receiver"
>>>> xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>>>>                                         <reason expression="Test Error
>>>> message"/>
>>>>                                 </makefault>
>>>>                 <property name="RESPONSE" value="true"/>
>>>>             </on-fail>
>>>>         </validate>
>>>>     </in>
>>>>     <send/>
>>>> </definitions>
>>>>
>>>> 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"
>>
>>
>>     
>
>   

[Attachment #3 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Balaji<br>
<br>
We are targetting end of October as it stands now<br>
<br>
asankha<br>
<br>
balaji hari wrote:
<blockquote cite="mid:12862228.post@talk.nabble.com" type="cite">
  <pre wrap="">Hi Ruwan,

Great it works! Can we know the approximate release schedule for Synapse1.1?

Balaji



Ruwan Linton wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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 <a class="moz-txt-link-rfc2396E" \
href="mailto:asankha@wso2.com">&lt;asankha@wso2.com&gt;</a> wrote:  </pre>
    <blockquote type="cite">
      <pre wrap=""> Balaji

Did you check the "ERROR_MESSAGE" property after the validation failure?
This should contain the text from the schema validator. Check
<a class="moz-txt-link-freetext" \
href="http://ws.apache.org/synapse/Synapse_Configuration_Language.html">http://ws.apache.org/synapse/Synapse_Configuration_Language.html</a> \
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 <a class="moz-txt-link-rfc2396E" \
href="mailto:to.haribalaji@gmail.com">&lt;to.haribalaji@gmail.com &gt;</a> wrote:  \
</pre>  <blockquote type="cite">
        <pre wrap="">
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.

&lt;definitions xmlns=<a class="moz-txt-link-rfc2396E" \
href="http://ws.apache.org/ns/synapse">" http://ws.apache.org/ns/synapse"</a>&gt;  \
&lt;localEntry key="validate_schema" src=<a class="moz-txt-link-rfc2396E" \
href="file:shipment.xsd">"file:shipment.xsd"</a>/&gt;  &lt;in&gt;
        &lt;validate&gt;
            &lt;schema key="validate_schema"/&gt;
            &lt;on-fail&gt;
                &lt;!-- if the request does not validate againt schema
throw a
fault --&gt;
                 &lt;makefault&gt;
                                        &lt;code value="tns:Receiver"
xmlns:tns=<a class="moz-txt-link-rfc2396E" \
href="http://www.w3.org/2003/05/soap-envelope">"http://www.w3.org/2003/05/soap-envelope"</a>/&gt;
  &lt;reason expression="Test Error
message"/&gt;
                                &lt;/makefault&gt;
                &lt;property name="RESPONSE" value="true"/&gt;
            &lt;/on-fail&gt;
        &lt;/validate&gt;
    &lt;/in&gt;
    &lt;send/&gt;
&lt;/definitions&gt;

Any pointers or suggestions would be greatly appreciated.

Thanks in advance
Balaji
--
View this message in context:

        </pre>
      </blockquote>
      <pre wrap=""><a class="moz-txt-link-freetext" \
href="http://www.nabble.com/Access-to-validation-error-message-tf4498668.html#a1283010 \
1">http://www.nabble.com/Access-to-validation-error-message-tf4498668.html#a12830101</a>
  </pre>
      <blockquote type="cite">
        <pre wrap="">Sent from the Synapse - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" \
href="mailto:synapse-dev-unsubscribe@ws.apache.org">synapse-dev-unsubscribe@ws.apache.org</a>
 For additional commands, e-mail: <a class="moz-txt-link-abbreviated" \
href="mailto:synapse-dev-help@ws.apache.org">synapse-dev-help@ws.apache.org</a>


        </pre>
      </blockquote>
      <pre wrap="">
--
Ruwan Linton
<a class="moz-txt-link-freetext" href="http://www.wso2.org">http://www.wso2.org</a> - \
"Oxygenating the Web Services Platform"


      </pre>
    </blockquote>
    <pre wrap="">
-- 
Ruwan Linton
<a class="moz-txt-link-freetext" href="http://www.wso2.org">http://www.wso2.org</a> - \
"Oxygenating the Web Services Platform"


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic