You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by De Vleeschauwer Nele <Ne...@nbb.be> on 2011/08/01 10:33:23 UTC
Validate Mediator questions
Hi,
I have some questions concerning the validate mediator:
- is it possible to validate against multiple schema's ?
- it is possible to just check if a given xml is well-formed ? or do you
always have to supply a schema ?
-----------------------------------------
Visit our website! http://www.nbb.be
"DISCLAIMER: The content of this e-mail message should not be
construed as binding on the part of the National Bank of Belgium
(NBB) unless otherwise and previously stated. The opinions
expressed in this message are solely those of the author and do not
necessarily reflect NBB viewpoints, particularly when the content
of this message, or part thereof, is private by nature or does not
fall within the professional scope of its author."
Re: Validate Mediator questions
Posted by Ruwan Linton <ru...@gmail.com>.
On Mon, Aug 1, 2011 at 2:10 PM, Hiranya Jayathilaka <hi...@gmail.com>wrote:
> On Mon, Aug 1, 2011 at 2:03 PM, De Vleeschauwer Nele <
> Nele.DeVleeschauwer@nbb.be> wrote:
>
> > Hi,
> >
> > I have some questions concerning the validate mediator:
> > - is it possible to validate against multiple schema's ?
> >
>
> I guess you will have to multiple validate mediator instances.
>
If you are referring to included/imported schema's you can/should specify
them all in a single validate mediator.
>
>
> > - it is possible to just check if a given xml is well-formed ? or do you
> > always have to supply a schema ?
> >
>
> If the XML is not well-formed there will be errors at the transport layer
> (or message builder layer) and message will probably not even make it to
> the
> Synapse engine.
>
Well, to be precious that depends on the message builder that you are using
for the incoming content type, but if you are to do a schema validation it
probably is XML and has to be built as XML so in effect yes the
ApplicationXML builder will fail to build the message.
Ruwan
>
> Thanks,
> Hiranya
>
>
> >
> >
> >
> >
> >
> > -----------------------------------------
> > Visit our website! http://www.nbb.be
> >
> > "DISCLAIMER: The content of this e-mail message should not be
> > construed as binding on the part of the National Bank of Belgium
> > (NBB) unless otherwise and previously stated. The opinions
> > expressed in this message are solely those of the author and do not
> > necessarily reflect NBB viewpoints, particularly when the content
> > of this message, or part thereof, is private by nature or does not
> > fall within the professional scope of its author."
>
>
>
>
> --
> Hiranya Jayathilaka
> Associate Technical Lead;
> WSO2 Inc.; http://wso2.org
> E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com
>
--
Ruwan Linton
Member, Apache Software Foundation; http://www.apache.org
<http://wso2.org>
phone: +94 11 282 7532
email: ruwan@blindvision.org; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton
Re: Validate Mediator questions
Posted by Hiranya Jayathilaka <hi...@gmail.com>.
On Mon, Aug 1, 2011 at 2:03 PM, De Vleeschauwer Nele <
Nele.DeVleeschauwer@nbb.be> wrote:
> Hi,
>
> I have some questions concerning the validate mediator:
> - is it possible to validate against multiple schema's ?
>
I guess you will have to multiple validate mediator instances.
> - it is possible to just check if a given xml is well-formed ? or do you
> always have to supply a schema ?
>
If the XML is not well-formed there will be errors at the transport layer
(or message builder layer) and message will probably not even make it to the
Synapse engine.
Thanks,
Hiranya
>
>
>
>
>
> -----------------------------------------
> Visit our website! http://www.nbb.be
>
> "DISCLAIMER: The content of this e-mail message should not be
> construed as binding on the part of the National Bank of Belgium
> (NBB) unless otherwise and previously stated. The opinions
> expressed in this message are solely those of the author and do not
> necessarily reflect NBB viewpoints, particularly when the content
> of this message, or part thereof, is private by nature or does not
> fall within the professional scope of its author."
--
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.; http://wso2.org
E-mail: hiranya@wso2.com; Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com