Can you provide a few more details in your answer? That may help cut down on the follow-up questions. What do you mean by "validate against it" in your reply? How do you validate?
And what is not 100% accurate?

Thanks.


Amila Suriarachchi wrote:


On Sat, Jun 12, 2010 at 9:32 PM, Jack Sprat <[email protected] <mailto:[email protected]>> wrote:

    What do you mean when you say validates the inbound request?  I
    can see the "unexpected subelement" message when a request is
    received that does not conform to the schema.  I would not call
    that valdiation.  I want to be able to return the actual error
    messages from the parser, similar to the #validate() method in
    XMLBeans.
    Is this possible?


No. ADB data model is generated from the schema so validate against it equals to validates against schema. However this is not 100% accurate.

thanks,
Amila.

The only alternative I can see is to pull out the body and send
    that through a parser, which is not ideal.
Thanks,
    J

    --- On *Sat, 6/12/10, Amila Suriarachchi
    /<[email protected]
    <mailto:[email protected]>>/* wrote:


        From: Amila Suriarachchi <[email protected]
        <mailto:[email protected]>>
        Subject: Re: [Axis2] Schema validation with ADB
        To: [email protected] <mailto:[email protected]>
        Cc: [email protected] <mailto:[email protected]>
        Date: Saturday, June 12, 2010, 1:38 AM




        On Thu, Jun 10, 2010 at 1:40 AM, Jack Sprat
        <[email protected]
        <http://us.mc373.mail.yahoo.com/mc/[email protected]>>
        wrote:

            Is there a simple way to perform schema validation when
            using ADB?  Examples would be quite helpful.
            I know this is simple with XMLBeans but have a service
            using ADB where I need to validate the inbound request.


        ADB validates the incoming request while parsing the request.

        thanks,
        Amila.

Thanks.
            J

<http://amilachinthaka.blogspot.com/>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to